what's the different of show() and setVisible(true)

In the JFrame, the show() method is a decoporated method, and must use setVisible(tre) method. and In the

JDialog, we must use show() method. but both JFrame and JDialog extend the Window,and Window have show() and setVisible(true), My problem is what's the different of the two method. if I use the show method in the JFrame, what the effect is. and I use the setVisible method in the JDialog, what the effect is.

Thx.

[448 byte] By [yuyuwang123] at [2007-9-26 2:50:52]
# 1
Afaik, there isn't any difference -- setVisible() was added to make the naming conventions more consistent.
nerd2004 at 2007-6-29 10:37:47 > top of Java-index,Archived Forums,Java Programming...
# 2
Be careful - many AWT and Swing internal methods still use show() even though it has been deprecated.Mitch GoldsteinAuthor, Hardcore JFC (Cambridge Univ Press)mdgoldstein@hotmail.com
mitchg at 2007-6-29 10:37:47 > top of Java-index,Archived Forums,Java Programming...