Quick question about JButton...

All right, so I'm in my first year second semester of computer programming. On Monday of this week we had a test?on this test we had this question:

Which of the following methods does JButton not have?

(A) setLabel()(B) setEnabled()

(C) setText()(D) setVisible()

Now.. I may only be a programming one student but I have taken it upon myself to learn as much as I can about Java gui?and when I saw this question I realized that JButton had all of these methods, as of Java 5.0 it does at least, so I thought maybe the answer he was looking for was the deprecated method (setLabel) so I chose that one. Seems I was wrong; according to my teacher setText is a non-existent method in JButton. Having used setText before I knew that JButton had it so I pulled up the Java docs and showed my teacher?his response was to mumble something about how it does not have this method when using the BreezySwing package, which is what he had been teaching to the class. When I slowly explained to him that he was in fact wrong about that even when using BreezySwing his response was to tell me he抎 think about changing the question. I was just wondering, am I right or is my teacher right?

[1206 byte] By [popupmana] at [2007-11-27 1:36:58]
# 1
You're right!!!:)
J@A@V@Aa at 2007-7-12 0:47:03 > top of Java-index,Java Essentials,Java Programming...
# 2
whether you re right or wrong, you sure are funny :D
calvino_inda at 2007-7-12 0:47:03 > top of Java-index,Java Essentials,Java Programming...
# 3
rightThose teachers :pSatanduvel
Satanduvela at 2007-7-12 0:47:03 > top of Java-index,Java Essentials,Java Programming...
# 4
tell your teacher to grow up and stop teaching people with these silly third-party libraries they'll probably never use again in their career. it's just confusing, as evidenced by his own confusion. tell him I said so, and he's free to discuss the matter here with me if he wants to
georgemca at 2007-7-12 0:47:03 > top of Java-index,Java Essentials,Java Programming...
# 5
If I do that he will take every chance he can to take points off my programs.. he has already given me several death glares for being right while answering questions that he asked :|
popupmana at 2007-7-12 0:47:03 > top of Java-index,Java Essentials,Java Programming...
# 6
I searched online and could not find any type of Button class in BreezySwing. The question did say JButton, so your teacher is wrong. Feel free to refer him to this page: http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.html
CaptainMorgan08a at 2007-7-12 0:47:03 > top of Java-index,Java Essentials,Java Programming...
# 7
I did. He said he'd think about it. Last time he said that, he ended up deciding to take it off the test NEXT year.
popupmana at 2007-7-12 0:47:03 > top of Java-index,Java Essentials,Java Programming...