public void init() { … } public void paint(Graphics g) { … } public void actionPerformed(ActionEvent e) { … }