Examples of TabbingDesktopPane


Examples of net.sf.swingdocking.TabbingDesktopPane

    protected JDesktopPane createDesktopPane() {
        if (!JdkVersion.isAtLeastJava16()) {
            throw new IllegalStateException("At least Java Version 6 is needed for tabbed Swing-Docking.");
        }
        return new TabbingDesktopPane();
    }
View Full Code Here

Examples of net.sf.swingdocking.TabbingDesktopPane

    frame1.setContentPane(new JLabel("Frame 1"));
    frame2.setContentPane(new JLabel("Frame 2"));
    frame3.setContentPane(new JLabel("Frame 3"));
    frame4.setContentPane(new JLabel("Frame 4"));
    frame5.setContentPane(new JLabel("Frame 5"));
    JDesktopPane desktop = new TabbingDesktopPane();
    desktop.add(frame1);
    desktop.add(frame2);
    desktop.add(frame3);
    desktop.add(frame4, LayoutConstraints.bottomOf(frame3));
        desktop.add(frame5, LayoutConstraints.tabAfter(frame4));
    JFrame frame = new JFrame("Dockingtest");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setSize(frame.getToolkit().getScreenSize());
    frame.setContentPane(desktop);
    frame.setVisible(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.