Class ServerConnectDialog

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

public class ServerConnectDialog extends JDialog implements ActionListener
Displays a dialog which allows the user to specify the IP Address and Port of the Admin Server and to enter a username and password
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getIPAddr

      public static String getIPAddr()
    • getPort

      public static String getPort()
    • getUserId

      public static String getUserId()
    • getUserPwd

      public static char[] getUserPwd()
    • getResponse

      public static int getResponse(Frame owner, String title, String question, String ipAddr, String port)
      Displays the dialog and returns the User information that the user has entered. Minor validation is done on the values for ipAddr and port. If the values are not valid, null will be returned
      Returns:
      null, if any values for the AS IP, AS Port, username, or password are empty or not valid.
    • getResponse

      public static int getResponse(Frame owner, String title, String question, String ipAddr, String port, String userId)
    • getResponse

      public static int getResponse(Frame owner, String title, String question, Vector ipAddrs, Vector ports)
    • getResponse

      public static int getResponse(Frame owner, String title, String question, Vector ipAddrs, Vector ports, String userId)
    • addGUIComponents

      protected void addGUIComponents()
      Sets up the GUI components for this dialog
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener