Can Anyone tell me how can I use Enum instead of "START" and "STOP"? I tried to make Enum with string (START("START")), but it turned out too complex. Is there any easy way to do it.
public void actionPerformed(ActionEvent e) {
System.out.println(e.getActionCommand());
if(e.getActionCommand() == "START") {
this.sModel.paused = false;
} else if(e.getActionCommand() == "STOP"){
this.sModel.paused = true;
}