public class Reset extends JButton {
Reset() {
super("Reset");
super.setText("Reset");
int h = 20, w = 20;
int x = 0 * 20; int y = 7 * 30;
setBounds(x, y, h, w);
addActionListener(new ResetActionListener()); setVisible(true);
}
private class ResetActionListener implements ActionListener {
public void actionPerformed(ActionEvent ae) {
ConnectClient.reset();
}
}
}