• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

modal in JDK 1.3  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Im using JDK 1.3 & Im trying to make a JOptionPane modal by extending JDialog, it was shown as modal in JDK 1.2 , but the moment I tested in JDK 1.3 it doesnt show as modal, any ideas?
here's my code..
private int showDialog(JOptionPane pane , String title)
{
JDialog dialog = pane.createDialog(japplet, title);

dialog.setModal(true);
dialog.setResizable(false);
dialog.show();

......

}// EOF showDialog()
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JOptionPane has built-in methods to handle this. Have you tried using JOptionPane.showMessageDialog()? Dialogs built in this way are modal by default.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The name 'Vinuv10' doesn't meet the guidelines for user names on JavaRanch. Please take a look at this link and re-register with an appropriate user name.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
Im really tired of this username business , so this is the last time Im giving one & its "vin s" & Im unable to give my actual name also since someone has already registered under this name, so pls pls accept this one.

Vinod
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinod,
Since Indian names are hardly unique, we are often confronted with this problem. I suggest you try the following combinations -
firstname lastname
lastname firstname
firstname lastName MiddleName
firstname middleName lastName
You can get creative here and try any other combination that produces an unique name. Since you can set your browser to use cookies, you will not have to type in your name every time.
Ajith
[This message has been edited by Ajith Kallambella (edited December 18, 2000).]
 
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, a single letter is insufficient for the last name. However, check your e-mail for an explanation of what's up with your other registered names. I'm sure we can find one that will work for you.
[This message has been edited by Jim Yingst (edited December 18, 2000).]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!