Examples of ClosableTab


Examples of pdfdb.gui.customcomponents.ClosableTab

    /** Closes a tab.
     * @param source The source of the event. */
    private static void closeTab(Object source)
    {
        ClosableTab tab = null;
        if (source instanceof ClosableTab)
        {
            tab = (ClosableTab) source;
        }
        else
        {
            tab = (ClosableTab) ((JComponent) source).getParent();
        }
        Component c = Hierarchy.findDirectAncestor(JTabbedPane.class, tab);
        JTabbedPane jtp = (JTabbedPane) c;
        jtp.remove(tab.getIndex());
    }
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.