Class StackTraceMenuItem

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants

public class StackTraceMenuItem extends JCheckBoxMenuItem
Menu Item for toggling stack traces for the SwingErrorMessage class. If SwingErrorMessage.setStackTrace(boolean) is called, all instance of StackTraceMenuItem will adjust their states.

If this class is to be permanently removed from a menu, the method dispose() should be called to prevent unneeded computations and to allow garbage collection of this object.

See Also:
  • Constructor Details

    • StackTraceMenuItem

      public StackTraceMenuItem(String label)
      Constructor.
      Parameters:
      label - the label of the menu item
  • Method Details

    • dispose

      public void dispose()
      Clean up the internal state of this StackTraceMenuItem so that the item can be garbage collected once all references to it are dropped.