This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Centering JOptionPanes and JDialogs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Centering JOptionPanes and JDialogs " Watch "Centering JOptionPanes and JDialogs " New topic

Centering JOptionPanes and JDialogs

Surya Kumar
Ranch Hand

Joined: Aug 21, 2004
Posts: 52
How to center the JOptionPanes and JDialogs. I want them centered on the screen. Any ideas. Thankxs in advance.

Regards<br />Prem<br />SCJP, SCJD, SCWCD, SCBCD, SCEA, SCJDWS
I agree. Here's the link:
subject: Centering JOptionPanes and JDialogs
Similar Threads
how many screens look anf Feel....
the term modal
Centering JOptionPanes and JDialogs
JFrame with multiple DialogBoxes
Swing/Oracle app crashing vm on Mac OSX