Public Member Functions | |
| Object[] | getSelectedObjects () |
| Returns null if the typed string was invalid; otherwise, returns the string as the user entered it. | |
| ChoiceDialog (Frame aFrame, String title, int width, int height, Object[] objectList, boolean canMultipleSelect) | |
| Creates the reusable dialog. | |
| void | actionPerformed (ActionEvent e) |
| This method handles events for the text field. | |
| void | propertyChange (PropertyChangeEvent e) |
| This method reacts to state changes in the option pane. | |
| void | clearAndHide () |
| This method clears the dialog and hides it. | |
Package Attributes | |
| Object[] | selectedObjects = null |
Private Attributes | |
| JList | objectJList |
| Object[] | objectList |
| JOptionPane | optionPane |
| String | btnString1 = "Enter" |
| String | btnString2 = "Cancel" |
Definition at line 12 of file ChoiceDialog.java.
1.4.6