Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

show() in FileDialog is deprecated?

 
Howard Ting
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
This may not be a problem but a confusion. I'm calling a file dialog in an applet with show() and it works okay, but the compiler says that show() is deprecated. This is strange because it's not noted deprecated in the JAVA API.
Has someone ever met with the same matter?
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

show
@Deprecated
public void show()Deprecated. As of JDK version 1.5, replaced by Component.setVisible(boolean).


Seems pretty clear to me.
 
Howard Ting
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I found my API is for 1.4.2...
Thanks~
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic