Class AboutDialog

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

public class AboutDialog extends JDialog implements ActionListener, HyperlinkListener
About windows. Can't set : - top image - about tab - license tab (optionnal)
Version:
$Revision: 300 $ Last update : $Date: 2010-11-17 22:35:44 +0100 (mer., 17 nov. 2010) $ By : $Author: sletellier $
Author:
chatellier
See Also:
  • Field Details

    • iconPath

      protected String iconPath
      Top image path (classpath)
    • backgroundColor

      protected Color backgroundColor
      Background color
    • aboutHtmlText

      protected String aboutHtmlText
      Html text displayed in about tab
    • licenseText

      protected String licenseText
      License text displayed in license tab
  • Constructor Details

    • AboutDialog

      public AboutDialog(Frame owner)
      Constructor. Build UI.
  • Method Details

    • setAboutHtmlText

      public void setAboutHtmlText(String aboutHtmlText)
      Set about text.
      Parameters:
      aboutHtmlText - the aboutHtmlText to set
    • setLicenseText

      public void setLicenseText(String licenseText)
      Set licence text.
      Parameters:
      licenseText - the licenseText to set
    • setIconPath

      public void setIconPath(String iconPath)
      Set icon path.
      Parameters:
      iconPath - the iconPath to set
    • setBackgroundColor

      public void setBackgroundColor(Color backgroundColor)
      Set background color.
      Parameters:
      backgroundColor - the backgroundColor to set
    • buildUI

      protected void buildUI()
      Build ui.
    • getTopPanel

      protected Component getTopPanel()
      Build the top component
      Returns:
      top component
    • getLicenseTab

      protected Component getLicenseTab()
      Build license tab.
      Returns:
      license tab component
    • getAboutTab

      protected Component getAboutTab()
      Build about tab.
      Returns:
      about tab component
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • hyperlinkUpdate

      public void hyperlinkUpdate(HyperlinkEvent he)
      Specified by:
      hyperlinkUpdate in interface HyperlinkListener
    • setVisible

      public void setVisible(boolean b)
      Overrides:
      setVisible in class Dialog