The show() method is indeed deprecated. Obsolete means that you should no longer use it, since it is replaced by something better and may be removed in the future. In this case, you should use setVisible(true) instead.
If you go over and look at Javadoc for the deprecated method, it will usually tell you what the intended replacement is.
Ernest friedman-hill
source share