title: Using java timer in JFrame
body: <p>when handset button pressed I want to green button color change red.After a certain time,again
  I want to green button.I dont use timer class.Please help me.</p>
  
  <p>For example my code</p>
  
  <pre><code>        if (e.getSource() == handsetbutton) {
  
                                text1.setBackground(Color.RED);
  
                            // What l have to add here?
  
  
  
          }
  </code></pre>