Heh |
[Mar. 30th, 2001|03:51 pm]
Brad Fitzpatrick
|
I've been fighting over a bug in my NBGS for like... an hour? I kept going back and forth between thinking blackdown's JDK was buggy or I was incredibly stupid. I couldn't get a frickin' button to work. I added the ActionListener, it built, ran, but just didn't work. My TextListener and WindowListener worked fine.... why wasn't a button working? I got Scott to look at it for me.... we wasted more time. Finally we found it:
add(new Button("Connect"));
Yeah, I was adding an anonymous button instance, not the one I'd created at top and added the actionlistener to. I usually mock up the interface with anonymous crap to begin with, but I'd forgot to change this one.
Hehehe. Yeah, I lose.
At least this isn't homework or real work... and at least it's the weekend. It's easy to laugh at myself for being stupid when I have nothing better to be doing. :-) |
|