On Saturday, January 31, 2009 at 1:11:28 AM UTC+5:30, FredK wrote:
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.
You can create buttons and add to options instead only adding button text, so that you can do anything to your buttons
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)