Class LoginDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----javax.swing.JDialog
                                           |
                                           +----LoginDialog

public class LoginDialog
extends JDialog
LoginDialog - Class used to log into the talk server.

Author:
Paul Kronenwetter, Jayme Manning

Paul Kronenwetter
Jayme Manning
Trade Secrets and/or Confidential
Commercial or Financial Information
Exempt From Disclosure Under the Freedom
of Information Act (5 USC 552(b)(3)
and 5 USC 552(b)(4)) and Under 18 USC 1905

Proprietary Information Notice
This document contains information proprietary to, and is the sole property of, Paul Kronenwetter and Jayme Manning. It shall not be reproduced, used or disclosed in any manner or for any purpose not authorized in writing by both Paul Kronenwetter and Jayme Manning, and except, as retention may be so authorized, it shall be returned to Paul Kronenwetter or Jayme Manning upon request.

© 1998 by Paul Kronenwetter and Jayme Manning
All Rights Reserved


Constructor Index

 o LoginDialog(JFrame)
LoginDialog - Constructor used to build the basic dialog set.

Method Index

 o addActionListener(ActionListener)
addActionListener - This method acts as a delegate to add an ActionListener event handler from another class to the two buttons on our dialog box.
 o getFields()
getFields - Accessor method used to retrive the data from the dialog box.
 o getPreferredSize()
getPreferredSize - Method used to tell the layout manager what size we want the box to be.
 o isAvailable()
isAvaialble - Simple method used to determine if the boxes have been filled out.
 o resetFields()
resetFields - Method used to reset the entry fields for the dialog box.

Constructors

 o LoginDialog
 public LoginDialog(JFrame parent)
LoginDialog - Constructor used to build the basic dialog set. This will be attached to a dummy frame in the parent applet window.

Parameters:
parent - JFrame used as an anchor for the dialog box.

Methods

 o getPreferredSize
 public Dimension getPreferredSize()
getPreferredSize - Method used to tell the layout manager what size we want the box to be.

Returns:
Dimension - The preferred size of the dialog box.
Overrides:
getPreferredSize in class Container
 o addActionListener
 public void addActionListener(ActionListener al)
addActionListener - This method acts as a delegate to add an ActionListener event handler from another class to the two buttons on our dialog box.

Parameters:
al - ActionListener to be added to the buttons.
 o resetFields
 public void resetFields()
resetFields - Method used to reset the entry fields for the dialog box.

 o isAvailable
 public boolean isAvailable()
isAvaialble - Simple method used to determine if the boxes have been filled out.

Returns:
boolean - Whether or not all the data is available.
 o getFields
 public String[] getFields()
getFields - Accessor method used to retrive the data from the dialog box.

Returns:
String[] - The username, machine name and port number.