Class JTabbedPaneWithCloseIcons

All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, SwingConstants

public class JTabbedPaneWithCloseIcons extends JTabbedPane implements MouseListener
A JTabbedPane which has a close ('X') icon on each tab. To add a tab, use the method addTab(String, Component) To have an extra icon on each tab (e.g. showing the file type) use the method addTab(String, Component, Icon). Clicking the 'X' closes the tab.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      The Constant serialVersionUID.
      See Also:
    • tabClosedListener

      private TabClosedListener tabClosedListener
      The tab closed listener.
  • Constructor Details

    • JTabbedPaneWithCloseIcons

      public JTabbedPaneWithCloseIcons()
      Instantiates a new j tabbed pane with close icons.
  • Method Details