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.


Constructor Index

 o ButtonDialog(Frame, String, int, int, String)
Construct the dialog.

Method Index

 o getSelection()
Returns the button selected, starting at 0.
 o processWindowEvent(WindowEvent)

Constructors

 o 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.

Methods

 o processWindowEvent
protected void processWindowEvent(WindowEvent e)
Overrides:
processWindowEvent in class Window
 o 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