Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Thread: KeyListener

    by Norm
    Replies
    9
    Views
    1,574

    Re: KeyListener

    Sorry, I do NOT see a constructor for the MyClass class.
    Are you talking about what is done in the main() method?


    Suggestion: move all the GUI creation code from the main() method to a...
  2. Thread: KeyListener

    by Norm
    Replies
    9
    Views
    1,574

    Re: KeyListener

    What does the constructor for MyClass do to make any GUI that you can see?
  3. Thread: KeyListener

    by Norm
    Replies
    9
    Views
    1,574

    Re: KeyListener

    The forum's software/server has problems occasionally. You now have 3 copies here

    How do you know if a key listener method is called? None of them call println to print out a message.

    Where...
  4. Thread: KeyListener

    by Norm
    Replies
    9
    Views
    1,574

    Re: KeyListener

    The component needs the focus to be able to receive key strokes.
    key binding is a more reliable way to receive key strokes.

    Post a small, complete program that compiles, executes and shows the...
Results 1 to 4 of 4