Solved

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

Posted on 2003-11-04
3
861 Views
Last Modified: 2008-02-26
How do I adjust the size of a JOptionPane.showConfirmDialog() regardless of the text contained within ?
0
Comment
Question by:rayskelton
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 125 total points
ID: 9683920
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
 
LVL 15

Expert Comment

by:Javatm
ID: 9683948
You may need to use JDaiolg instead of a JOptionPane because it only resize
with its components around it.

Hope it helps . . .
JAVATM
0
 
LVL 92

Expert Comment

by:objects
ID: 9684006
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question