Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-30-2008, 04:21 AM
Member
 
Join Date: Aug 2008
Posts: 3
Rep Power: 0
arpitvavadia is on a distinguished road
Question Error using Swing
I have used javax.swing , java.awt , java.awt.event.*. I am getting warnning will compliing
[deprecation] show() in java.awt.window have been deprecated 1 warning

What is the meaning
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 08-30-2008, 04:28 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 3,195
Rep Power: 5
Fubarable is on a distinguished road
Default
This means precisely what it says: don't use the show() method, use something else. This is because the Sun folks have decided that show is out of date, perhaps even dangerous to use, that better options are available. This of course begs the question, which other method should I use? Fortunately for us, the answer is readily available in the API. If you go to to the Window API and look up the show() method you'll see the answer.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 09-08-2008, 06:16 PM
Member
 
Join Date: Sep 2008
Posts: 31
Rep Power: 0
khajalid is on a distinguished road
Default
This means that you should not use show() method as it was used in previous versions but might not available in future.So, you should use its alternative which is available.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 530 error authentication required rgale JavaServer Pages (JSP) and JSTL 0 05-12-2008 04:28 PM
AWT or Swing bugger AWT / Swing 4 11-22-2007 09:44 AM
Error: javax.swing.AbstractButton cannot be applied to... barney AWT / Swing 1 08-01-2007 06:10 AM
map javax.swing.text.Element to javax.swing.text.View elizabeth New To Java 1 07-30-2007 07:02 PM
swing?? why use it javaforme44a AWT / Swing 3 07-18-2007 07:51 AM


All times are GMT +2. The time now is 11:14 PM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org