[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bug #13164] swing: minimumSize not honored by JSplitPane
From: |
Timo Lindfors |
Subject: |
[commit-cp] [bug #13164] swing: minimumSize not honored by JSplitPane |
Date: |
Mon, 23 May 2005 20:52:47 +0000 |
User-agent: |
Elinks |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13164>
Summary: swing: minimumSize not honored by JSplitPane
Project: classpath
Submitted by: lindi
Submitted on: Mon 05/23/05 at 20:52
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 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?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13164>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [commit-cp] [bug #13164] swing: minimumSize not honored by JSplitPane,
Timo Lindfors <=