Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

show()

 
Doit
Ranch Hand
Posts: 169
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
show() or setVisisble() may be used for displaying the frame.
For displaying Frame, we need setSize and setVisible methods. can
the setVisible be replaced by show() method??
- Thanks
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

While I am not sure if its a good practice or not,
but yes, it works. The documentation on the API
doesnot say much.....To me it looks like this should
be used in conjunction with hide().


Regds.
- satya
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
show() and hide() are deprecated since 1.1. Yes, you can still use them, but it's preferred that you use setVisible() instead. I think that the only reason for this is that Sun wanted method names to be more standardized. setXXX() and getXXX() are the standard names for methods which access a field XXX. This is important particularly if you are making a JavaBean out of the class, which is what Sun was doing when they made the change I think.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic