Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JOptionPane in AWT ?? [Similar to that]  RSS feed

 
Suji N
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
In Swings we have JOptionPane to display Dialog box.
for ex :
JOptionPane.showMessageDialog(this,"Message Here"
,"Title",JOptionPane.WARNING_MESSAGE);
In AWT i am able to display dialog by using another class which extends dialog. But,
Is there any thing like that in AWT to display dialog box ? [similar to JOptionPane]
Thanksinadvance
Yours
Suji
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suji N,

Please read the JavaRanch offial policy on usernames. Names must be in the form "First Name" + space + "Last Name", and in which first and last names are longer than 1 letter.

That taken care of... sorry, but there is not a class already built that does what you want... but that doesn't mean you can't make one yourself! All you'd have to do is make a DialogFactory class that has methods to make specific types of dialog boxes, and takes parameters for specific labels.
-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!