Yes most components can receive the focus. Some may require some enabling.
Type: Posts; User: NormR
Yes most components can receive the focus. Some may require some enabling.
Sorry, I don't know anything about the StdDraw class.
With the Java SE classes, you do not use any wait methods.
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.