Hi All! Well, when you have a JOptionPane displaying a message with an OK and Cancel button, how do you get the focus to the cancel button, by default, instead of the OK button?? Well, if you are telling me to do a requestfocus.. please understand that a simple requestfocus did not work. Please reply asap. Regds Lupo
"In the country of the blind, the one eyed man is the King"
Gautham Kasinath CV at : http://www.geocities.com/gkasinath
Here's a code example that shows how to change the default button selected... you can use it to figure out what you want to do... especially look at the LaunchListener...
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Its the little things, like having the focus on the button that cancel's and not on the one that can cause problems, that make an app look professional. Thanks a lot for Sharing!
Skip
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking