Search:

Type: Posts; User: copeg

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    2,286

    Re: help with KeyListener

    Your running into a common issue when it comes to drawing things with swing. Swing is a single threaded model, and updates and listeners are called on this thread. When you call Thread.sleep you end...
  2. Replies
    4
    Views
    2,286

    Re: help with KeyListener

    I don't see where the KeyListener is added to any component (also don't see how this compiles, but that's a separate issue). Call addKeyListener to do so (See How to Write a Key Listener (The Java™...
Results 1 to 2 of 2