Class LabMenu

java.lang.Object
  |
  +--LabMenu

public class LabMenu
extends java.lang.Object

A menu template.

Version:
0.0
Author:
Moshe

Method Summary
static int chooseOption(java.lang.String s)
          Allows the user to choose between numbered options in a dialog box.
static void displayTitle(java.lang.String s)
          Displays the specified string in a dialog box.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

displayTitle

public static void displayTitle(java.lang.String s)
Displays the specified string in a dialog box.
Parameters:
s - the string to display

chooseOption

public static int chooseOption(java.lang.String s)
Allows the user to choose between numbered options in a dialog box.
Parameters:
s - a string displaying the numbered options, one per line
Returns:
the chosen option, or -1 if no choice made