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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.

I agree. Here's the link:
subject: Changing border color in JOptionPane
Similar Threads
java alert
<identifier> expected?
Change Swing Component Subclass
Color of JOptionPane
Problem with JButton setBorderPainted Method