• Post Reply Bookmark Topic Watch Topic
  • New Topic

modal in JDK 1.3

 
vinuv10
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()
 
Anonymous
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
 
Ajith Kallambella
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).]
 
Jim Yingst
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).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!