de.kawt
Class OptionDialog
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Dialog
|
+--de.kawt.OptionDialog
- public class OptionDialog
- extends Dialog
- implements ActionListener
|
Constructor Summary |
OptionDialog(Frame owner,
String message,
String title,
String deflt,
int options)
The OptionDialog is similar to the swing class JOptionPane,
except that it is derived from dialog directly. |
| Methods inherited from class java.awt.Container |
add,
add,
add,
doLayout,
findComponentAt,
getComponent,
getComponentCount,
getComponents,
getInsets,
getLayout,
isAncestorOf,
isFocusTraversable,
paintAll,
paintComponents,
remove,
removeAll,
setLayout,
update,
validate |
| Methods inherited from class java.awt.Component |
addKeyListener,
addMouseListener,
addMouseMotionListener,
contains,
getBackground,
getBounds,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getLocationOnScreen,
getMaximumSize,
getParent,
getPreferredSize,
getSize,
getWidth,
getX,
getY,
hasFocus,
invalidate,
isEnabled,
isValid,
isVisible,
processKeyEvent,
processMouseEvent,
repaint,
repaint,
requestFocus,
setBackground,
setBounds,
setEnabled,
setForeground,
setLocation,
setSize,
setSize |
CLOSED_OPTION
public static final int CLOSED_OPTION
OK_OPTION
public static final int OK_OPTION
YES_OPTION
public static final int YES_OPTION
NO_OPTION
public static final int NO_OPTION
CANCEL_OPTION
public static final int CANCEL_OPTION
INPUT_OPTION
public static final int INPUT_OPTION
OptionDialog
public OptionDialog(Frame owner,
String message,
String title,
String deflt,
int options)
- The OptionDialog is similar to the swing class JOptionPane,
except that it is derived from dialog directly. However,
several of the static showXXX methods of JOptionPane are also
available here.
actionPerformed
public void actionPerformed(ActionEvent e)
- Description copied from interface: ActionListener
- Invoked when an action occurs.
- Specified by:
- actionPerformed in interface ActionListener
showConfirmDialog
public static int showConfirmDialog(Frame owner,
String msg,
String title)
showConfirmDialog
public static int showConfirmDialog(Frame owner,
String msg,
String title,
int type)
showInputDialog
public static String showInputDialog(Frame owner,
String msg)
showMessageDialog
public static void showMessageDialog(Frame owner,
String msg)