Class SystemPropertiesFrame

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

public class SystemPropertiesFrame extends JFrame implements ActionListener
A frame containing a table that displays the system properties for the current Java Virtual Machine (JVM). It is useful to incorporate this frame into an application for diagnostic purposes, since it provides a convenient means for the user to return configuration and version information when reporting problems.
See Also:
  • Field Details

  • Constructor Details

    • SystemPropertiesFrame

      public SystemPropertiesFrame(boolean menu)
      Constructs a standard frame that displays system properties.

      If a menu is requested, it provides a menu item that allows the user to copy the contents of the table to the clipboard in tab-delimited format.

      Parameters:
      menu - flag indicating whether or not the frame should display a menu to allow the user to copy properties to the clipboard.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Handles action events generated by the user.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - the event.
    • createMenuBar

      private JMenuBar createMenuBar(ResourceBundle resources)
      Creates and returns a menu-bar for the frame.
      Parameters:
      resources - localised resources.
      Returns:
      a menu bar.