public void actionPerformed(java.awt.event.ActionEvent e) { if (e.getActionCommand() == "render") { display.render(); } }