[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bug #13185] swing: minimumSize not always honored with mult
From: |
Timo Lindfors |
Subject: |
[commit-cp] [bug #13185] swing: minimumSize not always honored with multiple JSplitPanes |
Date: |
Wed, 25 May 2005 17:08:20 +0000 |
User-agent: |
Elinks |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13185>
Summary: swing: minimumSize not always honored with multiple
JSplitPanes
Project: classpath
Submitted by: lindi
Submitted on: Wed 05/25/05 at 17:08
Category: classpath
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Platform Version: None
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13185>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [commit-cp] [bug #13185] swing: minimumSize not always honored with multiple JSplitPanes,
Timo Lindfors <=