Search:

Type: Posts; User: NormR

Search: Search took 0.22 seconds.

  1. Re: event programming - controlling characters with arrow/keyboard keys

    Yes most components can receive the focus. Some may require some enabling.
  2. Re: event programming - controlling characters with arrow/keyboard keys

    Sorry, I don't know anything about the StdDraw class.
    With the Java SE classes, you do not use any wait methods.
  3. Re: event programming - controlling characters with arrow/keyboard keys

    Add some print statements to see if any of the listeners are called.

    To receive key presses, the component must have the focus.

    Note: A constructor does not return void.
Results 1 to 3 of 3