• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

modal in JDK 1.3

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic