Dear Wayne,
Wayne wrote:
...
> Can someone tell me why this doesn't when I have the button. Also how
> can I get
> this to work without putting a handler on the button?
...
I suppose this is because frame dispatches keyboard event to the lowest
component that has keyboard focus in its Component
Hi Alex,
At the moment I do have to use AWT. I quess from your answer that I can't do
what
I want. I did read a piece over at javaworld that that basically says I can do
this if I
want to use a Dialog. I don't like the ideal of issuing another window just to
close
the window. Thanks for yout time
Do you have to use AWT frames? If you use a swing frame, you can use a
glass pane to do what you are trying to do.
On Wed, 20 Oct 1999, Wayne wrote:
> Hello,
> I'm close, but no cigar. I'm still trying to get a frame to accept key
> events.
> In file TestCntrl.java I have -
>
> import java.awt
Hello,
I'm close, but no cigar. I'm still trying to get a frame to accept key
events.
In file TestCntrl.java I have -
import java.awt.* ;
import java.awt.event.* ;
public class TestCntrl extends TestFrame
{
public static void main(String arg[])
{
new TestCntrl ().setVisible(true)