Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am interested in puting a dialog

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am interested in puting a dialog box based on the dimensions of the frame. Does SwingUtilities gives any clue.?
Kumar
 
You can use the JOptionPane class, it is quite simple.
For example :
javax.swing.JOptionPane.showMessageDialog (
null, // The container you want
"Just a simple error message,
"Error message",
JOptionPane.ERROR_MESSAGE );

There exists a lot of other features, just see the docs about JOptionPane.

Bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top