Hello,
is it possible to display the buttons in a JOptionPane with Icons?
The text can easily be changed via
UIDefaults.put("OptionPane.okButtonText", "My Text"). Is there a key
like "OptionPane.okButtonIcon"?
I´ve also tried to work with JOptionPane.showOptionDialog(Component
parentComponent, Object message, String title, int optionType, int
messageType, Icon icon, Object[] options, Object initialValue). As
options I´ve passed an Array of Buttons. But this has the disadvantage
that no int-value is returned, when I press one of the buttons.
TIA
Jörg Fröber
Thomas Weidenfeller - 16 Dec 2004 15:33 GMT
> The text can easily be changed via
> UIDefaults.put("OptionPane.okButtonText", "My Text"). Is there a key
> like "OptionPane.okButtonIcon"?
No, but there is a "OptionPane.okIcon" key.
/Thomas

Signature
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq