Results 1 to 3 of 3
  1. #1
    arpitvavadia is offline Member
    Join Date
    Aug 2008
    Rep Power

    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

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    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.

  3. #3
    khajalid is offline Member
    Join Date
    Sep 2008
    Rep Power


    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.

Similar Threads

  1. error 530 error authentication required
    By rgale in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 05-12-2008, 05:28 PM
  2. AWT or Swing
    By bugger in forum AWT / Swing
    Replies: 4
    Last Post: 11-22-2007, 10:44 AM
  3. Replies: 1
    Last Post: 08-01-2007, 07:10 AM
  4. map javax.swing.text.Element to javax.swing.text.View
    By elizabeth in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 08:02 PM
  5. swing?? why use it
    By javaforme44a in forum AWT / Swing
    Replies: 3
    Last Post: 07-18-2007, 08:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts