Search:

Type: Posts; User: Morris Night

Search: Search took 0.34 seconds.

  1. Re: How can I place a pause between repaints when handling a button event?

    Thanks, Greg! Here's a sample I was able to code that solves my problem using a Swing Timer as you suggested:



    // *************** my EventHanlder *******************
    // * ...
  2. How can I place a pause between repaints when handling a button event?

    I am new to this forum and Java, so this is my first post.

    I have some gray JButtons and, when clicked, I want them to turn red for 500 milliseconds and then blue. I put an action listener on them...
Results 1 to 2 of 2