Top Fields Constructors Methods
com.sun.java.swing.ui

public Class OkCancelDialog

extends JDialog
implements ActionListener
Class Inheritance
All Implemented Interfaces
java.awt.event.ActionListener, java.util.EventListener
Imports
java.awt.BorderLayout, .Container, java.awt.event.ActionEvent, .ActionListener, javax.swing.JDialog, .JPanel

Field Summary

Modifier and TypeField and Description
private boolean
Inherited from javax.swing.JDialog:
accessibleContextrootPanerootPaneCheckingEnabled

Constructor Summary

AccessConstructor and Description
public
public
OkCancelDialog(String title, JPanel panel, boolean modal)

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent
the event to be processed
evt
)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.
public boolean
isOk()

Inherited from javax.swing.JDialog:
addImplcreateRootPanedialogInitgetAccessibleContextgetContentPanegetDefaultCloseOperationgetGlassPanegetGraphicsgetJMenuBargetLayeredPanegetRootPanegetTransferHandlerisDefaultLookAndFeelDecoratedisRootPaneCheckingEnabledparamStringprocessWindowEventremoverepaintsetContentPanesetDefaultCloseOperationsetDefaultLookAndFeelDecoratedsetGlassPanesetJMenuBarsetLayeredPanesetLayoutsetRootPanesetRootPaneCheckingEnabledsetTransferHandlerupdate

Field Detail

okPressedback to summary
private boolean okPressed

Constructor Detail

OkCancelDialogback to summary
public OkCancelDialog(String title, JPanel panel)
OkCancelDialogback to summary
public OkCancelDialog(String title, JPanel panel, boolean modal)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent evt)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

Parameters
evt:ActionEvent

the event to be processed

isOkback to summary
public boolean isOk()