Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void piscaVermelho()
- {
- jButton1.setBackground(Color.black);
- java.awt.EventQueue.invokeLater(new Runnable()
- {
- public void run()
- {
- try
- {
- Thread.sleep(200); //Pausa a tela por meio segundo
- }
- catch (InterruptedException ie)
- {
- }
- jButton1.setBackground(Color.red);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement