public void run() { if (!Aleph.isBatch() && Aleph.getPopup()) JOptionPane.showMessageDialog(null, string, "Error from " + pe, JOptionPane.ERROR_MESSAGE); else System.err.println("Error from " + pe + ": " + string); }