Search:

Type: Posts; User: tim8w

Search: Search took 0.11 seconds.

  1. Thread: KeyListener

    by tim8w
    Replies
    9
    Views
    1,583

    Re: KeyListener

    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...
  2. Thread: KeyListener

    by tim8w
    Replies
    9
    Views
    1,583

    Re: KeyListener

    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...
  3. Thread: KeyListener

    by tim8w
    Replies
    9
    Views
    1,583

    Re: KeyListener

    Norm,
    Everytime I try and post the small complete program, the Forum deletes the post...
  4. Thread: KeyListener

    by tim8w
    Replies
    9
    Views
    1,583

    Re: KeyListener

    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...
  5. Thread: KeyListener

    by tim8w
    Replies
    9
    Views
    1,583

    KeyListener

    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);...
Results 1 to 5 of 7