Norm,
Not sure what you mean. MyClass creates a JButton adds it to the Frame Container and displays the Frame with the button on it. That much works just fine. And as I mentioned if I assign the...
Type: Posts; User: tim8w
Norm,
Not sure what you mean. MyClass creates a JButton adds it to the Frame Container and displays the Frame with the button on it. That much works just fine. And as I mentioned if I assign the...
Norm,
As you should be able to see in the code, I tried to set the KeyListener to the Container. I have a breakpoint in the debugger in all three key routines and it never gets there. I have also...
Norm,
Everytime I try and post the small complete program, the Forum deletes the post...
Norm,
Here's a simple example. I have breakpoints in the debugger on all three key functions and they never get called:
import java.awt.Color;
import java.awt.Container;
import...
I have a JFrame to which I have added JButtons.
win=new JFrame("MyFrame");
win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
win.setBounds(400,200,335,630);win.setResizable(false);...