• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 961
  • Last Modified:

How do I adjust the size of a JOptionPane.showConfirmDialog()?

How do I adjust the size of a JOptionPane.showConfirmDialog() regardless of the text contained within ?
0
rayskelton
Asked:
rayskelton
  • 2
1 Solution
 
objectsCommented:
Don't think you can when using the showXXX methods.
You'll need to use the JOptionPane ctor's and createDialog() method to achieve that.
0
 
JavatmCommented:
You may need to use JDaiolg instead of a JOptionPane because it only resize
with its components around it.

Hope it helps . . .
JAVATM
0
 
objectsCommented:
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now