[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22952] swing: minimumSize not honored by JSplitPane
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22952] swing: minimumSize not honored by JSplitPane |
Date: |
16 Oct 2005 01:27:45 -0000 |
Steps to reproduce:
1. Compile and run the attached testcase.
Expected results:
1. A window with a textfield on the left side and "label1" on the
right side shows up.
Actual results (classpath 2005-05-22):
1. A window shows up. "label1" covers larger area than it should
and thus the textfield is completely invisible.
Testcase:
import javax.swing.*;
import java.awt.*;
public class jsplitpane extends JFrame {
public static void main(String[] args) {
(new jsplitpane()).show();
}
public jsplitpane() {
JTextField textfield = new JTextField();
textfield.setMinimumSize(new Dimension(100, 100));
JSplitPane splitpane = new
JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
textfield, new
JLabel("label1."));
this.setContentPane(splitpane);
this.setSize(new Dimension(400, 400));
}
}
This bug does not seem to be specific to JTextField as the same
incorrect behavior occurs if two JLabels are used.
Maybe javax.swing.JSplitPane.setDividerLocatation() should limit
divider location according to rightComponent.minimumSize and
leftComponent.minimumSize?
------- Comment #1 from from-classpath at savannah dot gnu dot org 2005-05-24
07:58 -------
Thanks for reporting. I will take care of this. You are really cool, your
testing is a great help in getting Swing to a usable state...
------- Comment #2 from from-classpath at savannah dot gnu dot org 2005-05-25
08:40 -------
I checked in a fix for that problem in CVS. Could you please test it?
------- Comment #3 from from-classpath at savannah dot gnu dot org 2005-05-25
16:51 -------
Very nice, the testcase works now with current classpath cvs. However, it seems
that I reduced this testcase too much. I am still seeing very similar bug in a
setup where there are multiple JSplitPanes. I'll file another bug report for
those soon.
------- Comment #4 from from-classpath at savannah dot gnu dot org 2005-05-25
20:05 -------
Thank you, I close this bug.
------- Comment #5 from from-classpath at savannah dot gnu dot org 2005-06-18
16:14 -------
This bug should be reopened as the textarea is again invisible.
Binary searching shows that the textarea is visible with
2005-06-14T21:00:00+0000 but invisible with 2005-06-14T23:50:00+0000. This
suggests that this bug could be caused by the same change that opened bug
#13439
------- Comment #6 from from-classpath at savannah dot gnu dot org 2005-06-20
13:51 -------
I committed another fix for this, which should finally be right. I'll leave
this closed. Could you please run your tests again?
------- Comment #7 from from-classpath at savannah dot gnu dot org 2005-06-20
14:39 -------
Ok, good. This testcase works now again. Bug #13439 is still alive, however.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22952
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22952] swing: minimumSize not honored by JSplitPane,
gcc-bugzilla at gcc dot gnu dot org <=