public class Thread4 extends JFrame {
public static void main(String[] args) {
// TODO Auto-generated method stub
Thread4 t = new Thread4();
t.init();
}
void init() {
setSize(400, 400);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLayout(null);
setVisible(true);
drawShape d = new drawShape(this);
d.start();
}
}