rendered paste bodypackage countdown;/** * * @author mohnewald */public class MainFrame extends javax.swing.JFrame { /** Creates new form MainFrame */ public MainFrame() { initComponents(); }/*snip*/ private void jButton_StartActionPerformed(java.awt.event.ActionEvent evt) { startCountDown(); } public void startCountDown() { Thread t; t = new Thread(); t.start(); } public void start() { // Countdown Code here jLabel1.setText("Foo"); } /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { MainFrame MyFrame = new MainFrame(); MyFrame.setVisible(true); } }); } // Variables declaration - do not modify private javax.swing.JToggleButton jButton_Start; private javax.swing.JLabel jLabel1; private javax.swing.JToggleButton jToggleButtonFoo; // End of variables declaration }