Class MemoryGCPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public final class MemoryGCPanel extends JPanel implements ActionListener
This class defines a simple memory status indicator which shows current heap usage and provides a button for forcing immediate garbage collection. It also turns the progress bar red if > 90% of the JVM's heap limit is consumed.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • MemoryGCPanel

      public MemoryGCPanel()
      Create a MemoryGCPanel.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Handle button clicks for the MemoryGCPanel, which cause forced garbage collection.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - ActionEvent identifying the clicked button (ignored)