All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----java.awt.Window | +----java.awt.Dialog | +----Acme.Widgets.ButtonDialog
Puts up a dialog with a message and client-specified buttons. All user input is locked out. The program can retrieve the user's answer via the getAnswer() method.
NOTE: do not use this inside an event handler call! With some browsers this will cause a deadlock. Instead, have your event handler start a new thread to run the button box.
Fetch the software.
Fetch the entire Acme package.
public ButtonDialog(Frame parent, String message, String button1, int answer1)
public ButtonDialog(Frame parent, String title, String message, String button1, int answer1)
public ButtonDialog(Frame parent, String message, String button1, int answer1, String button2, int answer2)
public ButtonDialog(Frame parent, String title, String message, String button1, int answer1, String button2, int answer2)
public ButtonDialog(Frame parent, String message, String button1, int answer1, String button2, int answer2, String button3, int answer3)
public ButtonDialog(Frame parent, String title, String message, String button1, int answer1, String button2, int answer2, String button3, int answer3)
public ButtonDialog(Frame parent, String message, String button1, int answer1, String button2, int answer2, String button3, int answer3, String button4, int answer4)
public ButtonDialog(Frame parent, String title, String message, String button1, int answer1, String button2, int answer2, String button3, int answer3, String button4, int answer4)
public void show()
public void run()handleEvent
public boolean handleEvent(Event evt)
public synchronized int getAnswer()
All Packages Class Hierarchy This Package Previous Next Index
ACME Java ACME Labs