Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Change buttons size/text in JoptionPane.showMessageDialog()

843805Dec 1 2005 — edited Jun 26 2008
I have a dialog created with this code:
JOptionPane.showMessageDialog(null,
   "About my application",
   "About",
   JOptionPane.INFORMATION_MESSAGE,
   aboutIcon);
Is there a way to change the text or size of the OK button that is displayed by default? I couldn't find anything in the API or by searching the forum.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2008
Added on Dec 1 2005
15 comments
3,817 views