This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

show() in FileDialog is deprecated?  RSS feed

 
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
Boost this thread!