public void actionPerformed(ActionEvent actionEvent) { outputArea.setText(""); GLFrame glFrame = new GLFrame(outputArea); glFrame.setVisible(true); }