File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Changing border color in JOptionPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Changing border color in JOptionPane" Watch "Changing border color in JOptionPane" New topic

Changing border color in JOptionPane

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
Is it possible to override the paint method and change the border color of
a JOptionPane and if so how would you do that? I know you can obtain the
JDialog of a JOptionPane using the createDialog method.

Don't get me started about those stupid light bulbs.
subject: Changing border color in JOptionPane