Results 1 to 4 of 4
Thread: method struck out.
- 03-13-2010, 11:45 AM #1
Member
- Join Date
- Mar 2010
- Posts
- 23
- Rep Power
- 0
method struck out.
What does it mean when the method has been struck out? enable has been struck out, I wonder why.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); } }
-
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!
- 03-13-2010, 04:45 PM #3
Member
- Join Date
- Mar 2010
- Posts
- 23
- Rep Power
- 0
Thank you.
-
Similar Threads
-
method not abstract, does not override actionperformed method.
By Theman in forum New To JavaReplies: 2Last Post: 03-26-2010, 05:12 PM -
ArrayLists compareTo method, equals method
By random0munky in forum New To JavaReplies: 2Last Post: 10-26-2009, 07:20 PM -
calling method from main method
By bob_bee in forum New To JavaReplies: 4Last Post: 10-02-2009, 05:30 PM -
Calling a method in a different class from within a method problem
By CirKuT in forum New To JavaReplies: 29Last Post: 09-25-2008, 07:55 PM -
cannot call private method from static method
By jon80 in forum New To JavaReplies: 3Last Post: 05-07-2008, 08:37 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks