All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.mitre.cvw.mudsy.Launcher

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----org.mitre.cvw.mudsy.Launcher

public final class Launcher
extends Panel
implements ActionListener, FocusListener, Runnable
A Launcher panel for running the Mudsy MUD Client.


Constructor Index

 o Launcher(String, int, String, Applet)
Constructs a new launcher panel.

Method Index

 o actionPerformed(ActionEvent)
Starts this object as a thread except when another is running
 o focusGained(FocusEvent)
Handoff focus
 o focusLost(FocusEvent)
This method does nothing.
 o requestFocus()
hand off focus to the correct field.
 o run()
Creates a MudsyFrame and runs it.
 o runLauncher(String, int, String)
Constructs a new launcher panel and puts it in a frame.

Constructors

 o Launcher
 public Launcher(String host,
                 int port,
                 String font,
                 Applet applet)
Constructs a new launcher panel.

Parameters:
host - initial value for the host field
port - initial value for the port field
font - base font for client
applet - place to receive an applet context is it exists

Methods

 o requestFocus
 public void requestFocus()
hand off focus to the correct field.

Overrides:
requestFocus in class Component
 o focusGained
 public void focusGained(FocusEvent e)
Handoff focus

 o focusLost
 public void focusLost(FocusEvent e)
This method does nothing.

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Starts this object as a thread except when another is running

 o run
 public void run()
Creates a MudsyFrame and runs it.

 o runLauncher
 public static void runLauncher(String host,
                                int port,
                                String font)
Constructs a new launcher panel and puts it in a frame.

Parameters:
host - initial value for the host field
port - initial value for the port field
font - base font for frame and launched clients

All Packages  Class Hierarchy  This Package  Previous  Next  Index