Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / December 2007

Tip: Looking for answers? Try searching our database.

JSplitpane divider won't go up !!

Thread view: 
Jack - 18 Dec 2007 14:09 GMT
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
Michael Dunn - 18 Dec 2007 18:39 GMT
> 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));


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.