I create a dialog using a JOptionPane:
Object options[] = {"OK", "Apply", "Cancel"};
wOptionPane = new JOptionPane( child, messageType,
JOptionPane.DEFAULT_OPTION,
null, options, null );
When I make the dialog visible, I sometimes want to
disable one or more of the option buttons until the
user has input valid data that makes the action of
that button meaningful.
How can I retrieve the buttons that the JOptionPane
creates for the options? Or is my only choice to create
all the buttons myself instead of letting the JOptionPane
create them?
--
Fred K.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 55:26:21 |
Calls: | 6,650 |
Calls today: | 2 |
Files: | 12,200 |
Messages: | 5,330,753 |