wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes How  to specify size for a JOptionpane showOptionDialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How  to specify size for a JOptionpane showOptionDialog" Watch "How  to specify size for a JOptionpane showOptionDialog" New topic
Author

How to specify size for a JOptionpane showOptionDialog

Kiran Baratam
Greenhorn

Joined: Sep 03, 2003
Posts: 27
Hi
I am using JOptionpane showOptionDialog to show the confirmation vales entered ina screen and providing 2 butons ok and cancel.
i am using GridLAyout to display the field names and values.
I am able to display all the information but i want to increase the size of the frame.
Is it possible to do.
Regards
Kiran
VIJAY Yadlapati
Ranch Hand

Joined: Aug 04, 2003
Posts: 175
Try this code..
JOptionPane pane = new JOptionPane(args..);
JDialog dialog = pane.createDialog(parent, title);
dialog.setSize(newSize);
dialog.show();
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to specify size for a JOptionpane showOptionDialog