Class AboutFrame

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

public class AboutFrame extends JFrame
A frame that displays information about the demonstration application.
See Also:
  • Field Details

    • PREFERRED_SIZE

      public static final Dimension PREFERRED_SIZE
      The preferred size for the frame.
    • STANDARD_BORDER

      public static final Border STANDARD_BORDER
      The default border for the panels in the tabbed pane.
    • resources

      private ResourceBundle resources
      Localised resources.
    • application

      private String application
      The application name.
    • version

      private String version
      The application version.
    • info

      private String info
      Other info about the application.
    • contributors

      private List contributors
      A list of contributors.
    • licence

      private String licence
      The licence.
  • Constructor Details

    • AboutFrame

      public AboutFrame(String title, ProjectInfo project)
      Constructs an about frame.
      Parameters:
      title - the frame title.
      project - information about the project.
    • AboutFrame

      public AboutFrame(String title, String application, String version, String info, Image logo, String copyright, String licence, List contributors, ProjectInfo project)
      Constructs an 'About' frame.
      Parameters:
      title - the frame title.
      application - the application name.
      version - the version.
      info - other info.
      logo - an optional logo.
      copyright - the copyright notice.
      licence - the licence.
      contributors - a list of developers/contributors.
      project - info about the project.
  • Method Details

    • getPreferredSize

      public Dimension getPreferredSize()
      Returns the preferred size for the about frame.
      Overrides:
      getPreferredSize in class Container
      Returns:
      the preferred size.
    • createTabs

      private JTabbedPane createTabs(ProjectInfo project)
      Creates a tabbed pane containing an about panel and a system properties panel.
      Parameters:
      project -
      Returns:
      a tabbed pane.
    • createAboutPanel

      private JPanel createAboutPanel(ProjectInfo project)
      Creates a panel showing information about the application, including the name, version, copyright notice, URL for further information, and a list of contributors.
      Parameters:
      project -
      Returns:
      a panel.
    • createLicencePanel

      private JPanel createLicencePanel()
      Creates a panel showing the licence.
      Returns:
      a panel.