private void setupErrorPanel() { errorPanel = new ErrorDisplay(); errorPanel.addMouseListener( new MouseAdapter() { public void mousePressed(MouseEvent event) { ApplicationManager.getCurrentApplicationInstance().getGlassPane().setVisible(false); } }); }