Class AdempiereTabbedPaneUI

  • All Implemented Interfaces:
    SwingConstants

    public final class AdempiereTabbedPaneUI
    extends MetalTabbedPaneUI
    The JGoodies Plastic Look&Feel implementation of TabbedPaneUI. It differs from its superclass MetalTabbedPaneUI in that it paints new tab shapes, provides two options, and supports ClearLook.

    You can enable or disable icons in tabs globally via com.jgoodies.looks.Options.setTabIconsEnabled(boolean).

    To disable the content border set

     JTabbedPane tabbedPane = new JTabbedPane();
     tabbedPane.putClientProperty(Option.NO_CONTENT_BORDER_KEY, Boolean.TRUE);
     
    To paint embedded tabs use
     JTabbedPane tabbedPane = new JTabbedPane();
     tabbedPane.putClientProperty(Option.EMBEDDED_TABS_KEY, Boolean.TRUE);
     

    There's a special mode that helps you detect content borders in heavily wrapped component hierarchies - such as the NetBeans IDE. In this marked mode the content border is painted as a Magenta line. You can enable this mode by setting the System property markContentBorders to true; in a command line:

     java -DmarkContentBorders=true
     
    Version:
    $Revision: 1.4 $
    Author:
    Karsten Lentzsch, Torge Husfeldt, Andrej Golovnin
    See Also:
    Options