Hi,

We are currently using jdk1.1.8. We have a situation where we have to
override show() method in
java.awt.Dialog. We will move to JDK1.2 soon. My questions are:

1. show() is deprecated in java.awt.Component.  When the sub class of
Dialog where show() is overridden is compiled, deprecated warning
appears. However, when show() is called on the sub class of Dialog, the
deprecated warning does not appear during compilation. Could some one
explain this behaviour?

2. Although show() is deprecated in jdk 1.1, I still see the method in
jdk1.2 and jdk1.3. Is it safe to override show() when we use jdk1.2 or
later versions.

The reason why we override show() instead of setVisible() is, the users
of our Dialog could call either show() or setVisible() and setVisible()
calls show() in java.awt.Component. Is there any other equivalant method
that I can use instead of show() and not get any deprecated warnings in
any jdk versions later than jdk1.1.

Thanks for your reply,
Bindu

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to