Class WelcomeDialog

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

public class WelcomeDialog
extends JDialog
A simple welcome dialog with the option to open an existing project or create a new one.
Author:
Harald Barsnes, Marc Vaudel
See Also:
Serialized Form
  • Constructor Details

    • WelcomeDialog

      public WelcomeDialog​(PeptideShakerGUI peptideShakerGUI, boolean showLowMemoryWarning, boolean showJavaVersionWarning, boolean modal)
      Create a new WelcomeDialog.
      Parameters:
      peptideShakerGUI - the dialog parent
      showLowMemoryWarning - show or hide the low memory warning
      showJavaVersionWarning - show or hide the java version warning
      modal - modal or not modal
  • Method Details

    • setVisible

      public void setVisible​(boolean visible)
      Make sure that the dummy frame is hidden when the dialog is not visible.
      Overrides:
      setVisible in class Dialog
      Parameters:
      visible - if the dialog is to be visible or not
    • setIconImage

      public void setIconImage​(Image image)
      Overrides:
      setIconImage in class Window
    • checkForNewSearchGUIVersion

      public boolean checkForNewSearchGUIVersion​(String searchGuiJarPath)
      Check for new version.
      Parameters:
      searchGuiJarPath - the path to the SearchGUI jar file
      Returns:
      true if a new version is available
    • downloadSearchGUI

      public boolean downloadSearchGUI()
      Download SearchGUI.
      Returns:
      true if not canceled