• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

setVisible???

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I have a little problem..
I create a new dialog with
dialog = new bookDialog
dialog.pack();
the user presses the book button which does the following...
dialog.setVisible(true);
to close this dialog i then call
dialog.setVisible(false);

Alls Fine. But next time i call dialog.setVisible(true); my dialog flashes on the screen for a second and then minimizes itself!!
Can Anyone Help?
cheers
joe
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Joe,
Try to prepare ur dialog as Model. You may get whatever you want.
Anil
 
J Hartley
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, prepare as Model? , I dont follow you?
Cheers
Joe
 
Anil Sadineni
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Joe,
Prepare ur dialog as model dialog. See the API for JDialog constructers.

Bye
Anil
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could try using Dialog.show();
when the event to make your dialog visisble is fired.
When you want your dialog to close you could use Dialog.dispose();
[This message has been edited by Nigel Browne (edited May 28, 2001).]
 
J Hartley
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have my dialogs as Modal. The dispose() method works fine . Thanks for all your help.
Cheers
Joe
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic