Re: Still looking for a solution.

1999-10-21 Thread Pavel Tolkachev
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

Re: Still looking for a solution.

1999-10-21 Thread Wayne
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

Re: Still looking for a solution.

1999-10-21 Thread Alex M.
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

Still looking for a solution.

1999-10-21 Thread Wayne
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)