Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. [SOLVED] Re: Nimbus PLAF: and a double call to repaint() inside a runnable interface

    It could be the call to setEnabled() lets the Swing thread call the paintComponent() method on another thread BEFORE the code corrects the value of trail away from -1. Move the setEnabled() call...
  2. [SOLVED] Re: Nimbus PLAF: and a double call to repaint() inside a runnable interface

    What are the values of tail before the exception happens?
    Please copy all of the debug print out including the text of the error message here.

    Is the value of tail always the same when the...
  3. [SOLVED] Re: Nimbus PLAF: and a double call to repaint() inside a runnable interface

    Yes, I get the Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1
    some times.
    Have you added some println statements to the code? What is printed out just before...
  4. [SOLVED] Re: Nimbus PLAF: and a double call to repaint() inside a runnable interface

    There must be a hole in your logic that allows the value of the arg to the get() method to be -1.
    Look at line 94 to see if the variable with the bad value is head or tail.
    Then look at the code to...
  5. [SOLVED] Re: Nimbus PLAF: and a double call to repaint() inside a runnable interface

    Please post the full text of the error message.

    Please explain how you get the error. When I execute the code there is no error. I pressed the SLide button many times and the text on the screen...
Results 1 to 5 of 5