Package org.wonderly.swing.tabs

Examples of org.wonderly.swing.tabs.CloseableTabbedPane


    centerPane.setLeftComponent(new JScrollPane(pTree));

    // content.add("West", new JScrollPane(pTree));

    tabbedPane = new CloseableTabbedPane(JTabbedPane.TOP);
    // tabbedPane.addTab("test", new GroTab(JTabbedPane.BOTTOM));
    TabHandler tabHandler = new TabHandler();
    tabbedPane.addTabCloseListener(tabHandler);
    tabbedPane.addChangeListener(tabHandler);
    centerPane.setRightComponent(tabbedPane);
    // centerPane.setDividerLocation(150);

    messageBox = new CloseableTabbedPane(JTabbedPane.TOP);
    messageBox.addTabCloseListener(tabHandler);

    // messageBox.setFont(new Font("Monospaced", Font.BOLD, 14));
    // messageBox.setEditable(false);
View Full Code Here


        gTab.getEditorPane().requestFocus();
      }
    }

    public void tabClosed(TabCloseEvent e) {
      CloseableTabbedPane source = (CloseableTabbedPane) e.getSource();
      source.remove(e.getClosedTab());

    }
View Full Code Here

TOP

Related Classes of org.wonderly.swing.tabs.CloseableTabbedPane

Copyright © 2018 www.massapicom. 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.