Package weka.gui

Class CloseableTabTitle

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class CloseableTabTitle extends JPanel
Tab title widget that allows the user to click a little cross in order to close the tab
Version:
$Revision: 11870 $
Author:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
See Also:
  • Constructor Details

    • CloseableTabTitle

      public CloseableTabTitle(JTabbedPane pane, String closeAccelleratorText, CloseableTabTitle.ClosingCallback callback)
      Constructor.
      Parameters:
      pane - the enclosing JTabbedPane
      callback - the callback to notify on closing widget click
  • Method Details

    • setBold

      public void setBold(boolean bold)
      Set a bold look for the tab
      Parameters:
      bold - true for bold
    • setButtonEnabled

      public void setButtonEnabled(boolean enabled)
      Enable/disable the close widget
      Parameters:
      enabled -