Advertisement
Guest User

1

a guest
Nov 28th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. public void comecaJogo1(int t)
  2. {
  3.         jButton1.setBackground( new Color( 255, 100, 100 ) ); //vermelho fraco
  4.         try {
  5.             Thread.sleep(100);                 //1000 milliseconds is one second.
  6.         } catch(InterruptedException ex) {
  7.             //Thread.currentThread().interrupt();
  8.         }
  9.             jButton1.setBackground( new Color( 255, 0, 0 ) ); // vermelho forte
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement