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(Component component,
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,
paintAll,
paintComponents,
remove,
removeAll,
setLayout,
update,
validate |
Methods inherited from class java.awt.Component |
addKeyListener,
addMouseListener,
addMouseMotionListener,
contains,
getBounds,
getFont,
getFontMetrics,
getGraphics,
getHeight,
getLocationOnScreen,
getMaximumSize,
getParent,
getPreferredSize,
getSize,
getWidth,
getX,
getY,
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(Component component,
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.
getFrame
public static Frame getFrame(Component component)
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(Component component,
String msg,
String title)
showConfirmDialog
public static int showConfirmDialog(Component component,
String msg,
String title,
int type)
showInputDialog
public static String showInputDialog(Component component,
String msg)
showMessageDialog
public static void showMessageDialog(Component component,
String msg)