[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22955] swing: minimumSize not always honored with multipl
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22955] swing: minimumSize not always honored with multiple JSplitPanes |
Date: |
16 Oct 2005 01:27:46 -0000 |
Steps to reproduce:
1. Compile and run the attached testcase.
Expected results:
1. A window with 10 textareas and 10 labels shows up.
Actual results:
1. A window shows up. It has 10 labels but only the last textarea is visible.
Testcase:
import javax.swing.*;
import java.awt.*;
public class jsplitpane extends JFrame {
public static void main(String[] args) {
(new jsplitpane()).show();
}
public jsplitpane() {
JPanel panel = new JPanel();
panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
for (int i=0; i<10; i++) {
JTextField textfield = new JTextField();
textfield.setMinimumSize(new Dimension(100, 10));
panel.add(new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
textfield,
new JLabel("label"+i)));
}
this.setContentPane(panel);
this.setSize(new Dimension(400, 400));
}
}
Bug #13164 has a reduced version of the above testcase.
------- Comment #1 from from-classpath at savannah dot gnu dot org 2005-05-30
14:02 -------
I checked in a fix for that in Classpath's CVS. Could you check if that works
for you?
------- Comment #2 from from-classpath at savannah dot gnu dot org 2005-05-30
14:29 -------
Yes, seems to work now. Thanks!
------- Comment #3 from from-classpath at savannah dot gnu dot org 2005-05-30
14:36 -------
Good, I'm closing this bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22955
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22955] swing: minimumSize not always honored with multiple JSplitPanes,
gcc-bugzilla at gcc dot gnu dot org <=