Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > isShowing() after show()

Reply
Thread Tools

isShowing() after show()

 
 
Peter
Guest
Posts: n/a
 
      07-07-2003
Hi all,
After i show a dialog, the isShowing() method return false.
Why?

thanks
from Peter((E-Mail Removed))
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      07-07-2003
On 6 Jul 2003 19:14:01 -0700, http://www.velocityreviews.com/forums/(E-Mail Removed) (Peter) wrote or
quoted :

> After i show a dialog, the isShowing() method return false.
>Why?


the peer object does not get created until addNotify is called.

addNotify does not get called until you do a setVisible true.

In other words you have to do initialisation that requires a peer in

addNotify after it returns from super.addNotify.

see http://mindprod.com/jgloss/addnotify.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
 
Reply With Quote
 
 
 
 
Peter
Guest
Posts: n/a
 
      07-07-2003
Sorry, mistake
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
if instance variable get initialize after assigning some values or after constructor then when does static variable get initialize Tony Morris Java 3 02-04-2006 08:39 AM
.NET server becomes slow after several hours, go back normal after restarting IIS davidw ASP .Net 3 08-27-2004 06:25 PM
After adding Textboxes to calender control, how to get values after Postback? Andreas Klemt ASP .Net 0 02-01-2004 02:54 AM
Datalist selects Item after first click, but does apply the SelectedItemTemplate after the second click only Dirk Meusel ASP .Net 1 08-19-2003 09:56 AM



Advertisments