Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Method is obsolete?

  1. #1
    Member
    Join Date
    Feb 2013
    Location
    Canada
    Posts
    54
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Default Method is obsolete?

    I was making a few GUIs in preparation for an upcoming Java test and one of the method my professor showed us was setMnemonic, which can take in either an integer or char value. I use NetBeans as my IDE and the Javadoc it provides seems unusual. For setMnemonic(char mnemonic), it says the method is obsolete and to instead use setMnemonic(int mnemonic). I have 3 questions:

    1) Does the JDK no longer support setMnemonic(char mnemonic) or simply advising to not use it?
    2) Do other IDEs provide the same information and do they support the method?
    3) Are there other primitive methods that are also described as being obsolete?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Method is obsolete?

    What class is that method in? That is needed to be able to read the API doc for the method you are talking about.

    What does the API doc say?
    http://docs.oracle.com/javase/7/docs/api/
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 1
    Last Post: January 23rd, 2013, 07:29 AM
  2. [SOLVED] How to create a Java generic method, similar to a C++ template method?
    By Sharmeen in forum Object Oriented Programming
    Replies: 3
    Last Post: October 18th, 2012, 02:33 AM
  3. Replies: 3
    Last Post: October 31st, 2011, 12:42 AM
  4. Can i call init() method in destroy method.?
    By muralidhar in forum Java Servlet
    Replies: 1
    Last Post: October 22nd, 2010, 11:18 AM
  5. Obsolete code
    By lostinjava in forum What's Wrong With My Code?
    Replies: 3
    Last Post: July 25th, 2010, 05:25 PM