Hi,
I want to display my button in a label.here is my code.pls help me what i have to do further?
Code:
public class AstMonitor extends JApplet implements ActionListener, Runnable {
Thread astThread;
JButton pause= new JButton(spause);
public void init() {
GridLayout gl;
getContentPane().setLayout(new GridLayout(3,10));
pause.setActionCommand("pause");
pause.addActionListener(this);
this.getContentPane().add(pause);
pause.setMnemonic('p');
pause.setToolTipText("press pause");
pause.setBackground(Color.yellow);
astThread = new Thread(this);
astThread.start();
}