public void run() { SGUI.showError(ControlCenterWindow.this, errortitle, errormessage, exception); } });
public void run() { SGUI.showError(ControlCenterWindow.this, errortitle, errormessage, exception); } });
public void actionPerformed(ActionEvent e) { try { Desktop.getDesktop().open(new File(fi.getFilePath()).getParentFile().getCanonicalFile()); } catch(IOException ex) { SGUI.showError(table, "Error Opening Folder", "Folder '"+new File(fi.getFilePath()).getParentFile().getName()+"'could not be opened.", ex); } } });
public void actionPerformed(ActionEvent e) { try { Desktop.getDesktop().open(new File(fi.getFilePath()).getParentFile().getCanonicalFile()); } catch(IOException ex) { SGUI.showError(table, "Error Opening Folder", "Folder '"+new File(fi.getFilePath()).getParentFile().getName()+"'could not be opened.", ex); } } });
public void actionPerformed(ActionEvent e) { try { Desktop.getDesktop().open(new File(fi.getFilePath()).getCanonicalFile()); } catch(IOException ex) { // Doesn't work for PDf on windows :-( http://bugs.sun.com/view_bug.do?bug_id=6764271 SGUI.showError(table, "Error Opening File", "File '"+new File(fi.getFilePath()).getName()+"' could not be opened.", ex); } } });
public void actionPerformed(ActionEvent e) { try { Desktop.getDesktop().open(new File(fi.getFilePath()).getCanonicalFile()); } catch(IOException ex) { // Doesn't work for PDf on windows :-( http://bugs.sun.com/view_bug.do?bug_id=6764271 SGUI.showError(table, "Error Opening File", "File '"+new File(fi.getFilePath()).getName()+"' could not be opened.", ex); } } });
/** * Called when an exception occurred. * @param exception The exception. */ public void customExceptionOccurred(Exception exception) { if (customExceptionListener != null) { customExceptionListener.exceptionOccurred(exception); } else { if(parent!=null) { SGUI.showError(parent, "Problem Occurred", "A problem occurred while performing the requested action: " +SReflect.getInnerClassName(exception.getClass())+" "+exception.getMessage(), exception); // exception.printStackTrace(); } else { super.exceptionOccurred(exception); } } }
SGUI.showError(PlatformConfigPanel.this, "Load Problem", "Warning: Could not load settings: "+ex, ex);
SGUI.showError(PlatformConfigPanel.this, "Save Problem", "Warning: Could not save settings: "+ex, ex);