TimerToggleButton.java |
/* * Created by IntelliJ IDEA. * User: root * Date: Feb 8, 2002 * Time: 12:35:24 PM * To change template for new class use * Code Style | Class Templates options (Tools | IDE Options). */ package graphics.carl; class TimerToggleButton extends ToggleCommandButton { private Main main; public TimerToggleButton(Main main) { super("Start Timer", "Stop Timer"); this.main = main; } public void run() { main.toggleTimer(); } }