Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2887 > unrolled thread
| Started by | "Jack" <jack@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:41 +0000 |
| Last post | 2011-04-27 15:41 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.gui
JSplitpane divider won't "Jack" <jack@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
Re: JSplitpane divider wo "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
| From | "Jack" <jack@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:41 +0000 |
| Subject | JSplitpane divider won't |
| Message-ID | <4767d458$0$850$ba4acef3@news.orange.fr> |
To: comp.lang.java.gui
Hi,
i have a Swing GUI wich is designed like below. With only 1 tab, there is no problem, but with ~ 20 tabs, the divider of the JSplitpane can only go down (with the mouse), not up.
Do you know this problem and have you any kind of solution plz ?
============================================
package dividerbug;
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.JTabbedPane;
import javax.swing.JTable;
public class Test {
public static void main(String[] args) {
JFrame frame = new JFrame();
JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.BOTTOM);
for (int i = 0; i < 20; i++) {
tabbedPane.addTab("tab"+i, new JScrollPane(new JTable()));
}
JScrollPane scrollList = new JScrollPane(new JList());
splitPane.setTopComponent(tabbedPane);
splitPane.setBottomComponent(scrollList);
frame.setContentPane(splitPane);
frame.setVisible(true);
}
}
============================================
TIA
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:41 +0000 |
| Subject | Re: JSplitpane divider wo |
| Message-ID | <4768143c@dnews.tpgi.com.au> |
| In reply to | #2887 |
To: comp.lang.java.gui "Jack" <mlskqd@poqsd.com> wrote in message news:4767d458$0$850$ba4acef3@news.orange.fr... > Hi, > i have a Swing GUI wich is designed like below. With only 1 tab, there is no problem, but with ~ > 20 tabs, the divider of the JSplitpane can only go down (with the mouse), not up. > Do you know this problem and have you any kind of solution plz ? <code snipped> tabbedPane.setMinimumSize(new java.awt.Dimension(0,0)); --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web