All Packages Class Hierarchy This Package Previous Next Index
Class ORG.opengroup.awt.ButtonDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----ORG.opengroup.awt.ButtonDialog
- public class ButtonDialog
- extends Dialog
A Dialog which displays a row of buttons.
ButtonDialog(Frame, String, int, int, String)
- Construct the dialog.
getSelection()
- Returns the button selected, starting at 0.
processWindowEvent(WindowEvent)
-
ButtonDialog
public ButtonDialog(Frame parent,
String title,
int x,
int y,
String buttonLabels)
- Construct the dialog. To allow subclassing, show() is not called.
- Parameters:
- parent - The parent frame.
- title - Window title.
- x - x-location of the dialog.
- y - y-location of the dialog.
- buttonLabels - Button labels, one button per line.
processWindowEvent
protected void processWindowEvent(WindowEvent e)
- Overrides:
- processWindowEvent in class Window
getSelection
public int getSelection()
- Returns the button selected, starting at 0.
If the dialog was closed without a selection, -1 is returned.
All Packages Class Hierarchy This Package Previous Next Index