@Override public void actionPerformed(ActionEvent e) { gameWorld.setSound(!gameWorld.getSound()); System.out.println( "Sound Command From " + e.getActionCommand() + " " + e.getSource().getClass()); }