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?

