Results 1 to 4 of 4
  1. #1
    OMFGITSROHIT is offline Member
    Join Date
    Mar 2010
    Posts
    23
    Rep Power
    0

    Default method struck out.

    Java Code:
    public Exam_Season() {
            initComponents();
            Login l=new Login();
             if (l.access_power.contentEquals("a"))
                    {
                        jButton1.enable(false);
                        jButton2.enable(false);
                        jButton5.enable(false);
                    }
        }
    What does it mean when the method has been struck out? enable has been struck out, I wonder why.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    This means that the method has been deprecated in that Sun recommends that you no longer use it as it may no longer be supported in future versions of Java. If you go to the JComponent API, you'll see that this is so, and also the method that Sun recommends that you use instead:

    JComponent (Java Platform SE 6)

    Much luck!

  3. #3
    OMFGITSROHIT is offline Member
    Join Date
    Mar 2010
    Posts
    23
    Rep Power
    0

    Default

    Thank you.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by OMFGITSROHIT View Post
    Thank you.
    You're quite welcome!

Similar Threads

  1. Replies: 2
    Last Post: 03-26-2010, 06:12 PM
  2. ArrayLists compareTo method, equals method
    By random0munky in forum New To Java
    Replies: 2
    Last Post: 10-26-2009, 08:20 PM
  3. calling method from main method
    By bob_bee in forum New To Java
    Replies: 4
    Last Post: 10-02-2009, 06:30 PM
  4. Replies: 29
    Last Post: 09-25-2008, 08:55 PM
  5. cannot call private method from static method
    By jon80 in forum New To Java
    Replies: 3
    Last Post: 05-07-2008, 09:37 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
  •