Hi guys at java ranch, I'm currently studying java at RMIT, Victoria, Australia. And we are currently doing an in-class project which involves making a basic calculator with a menu bar, but every time i click on the menu bar and then try to use the calcultor buttons it wont work, my teacher says it has something to do with re focusing, or refreshing graphics, but nor i or my teacher can figure it out....could u please give me a hand? Luv Han xoxoxox
I'd put a "System.out.println()" trace statement in your button's event handler.
If you still don't see anything, I'd write a small "hello world" type of program that just has a "public static void main()", puts up a frame, adds a button, and gives the button an event handler, and get that working.
Good luck .. PSM
PS: "Focus" isn't necessarily the first thing I'd look at, but you can always write an event handler for window events and put a "println()" in that, too.
PPS: If you're REALLY lucky, maybe your teacher will let you use a tool like Eclipse, Netbeans or JBuilder with GUI debuggers that let you step through the code instead...