/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, "ERROR"); dialog.setModal(false); dialog.setVisible(true); }
public void actionPerformed(ActionEvent evt) { ((JDialog)getTopLevelAncestor()).dispose(); } }
super(new GridBagLayout()); setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); constraints.fill = GridBagConstraints.NONE; constraints.setGridBounds(0, 0, 1, 1); add(msgArea, constraints); constraints.fill = GridBagConstraints.HORIZONTAL; constraints.setGridBounds(0, 1, 1, 1); add(createButtonsPanel(), constraints); constraints.fill = GridBagConstraints.BOTH; constraints.setGridBounds(0, 2, 1, 1); add(subpanel, constraints);
super(new GridBagLayout()); setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); constraints.fill = GridBagConstraints.NONE; constraints.setGridBounds(0, 0, 1, 1); add(msgArea, constraints); constraints.fill = GridBagConstraints.HORIZONTAL; constraints.setGridBounds(0, 1, 1, 1); add(createButtonsPanel(), constraints); constraints.fill = GridBagConstraints.BOTH; constraints.setGridBounds(0, 2, 1, 1); add(subpanel, constraints);
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, "ERROR"); dialog.setModal(false); dialog.setVisible(true); }
public void actionPerformed(ActionEvent evt) { ((JDialog)getTopLevelAncestor()).dispose(); } }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(parentComponent, "ERROR"); dialog.setModal(false); dialog.setVisible(true); }
public void actionPerformed(ActionEvent evt) { if (isDetailShown) { subpanel.remove(detailsArea); isDetailShown = false; showDetailButton.setText (resources.getString("ShowDetailButton.text")); } else { subpanel.add(detailsArea, BorderLayout.CENTER); showDetailButton.setText (resources.getString("ShowDetailButton.text2")); isDetailShown = true; } ((JDialog)getTopLevelAncestor()).pack(); } }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { if (debug) { ex.printStackTrace(); } JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(JSVGViewerFrame.this, "ERROR"); dialog.setModal(false); dialog.setVisible(true); }
public void actionPerformed(ActionEvent evt) { if (isDetailShown) { subpanel.remove(detailsArea); isDetailShown = false; showDetailButton.setText (resources.getString("ShowDetailButton.text")); } else { subpanel.add(detailsArea, BorderLayout.CENTER); showDetailButton.setText (resources.getString("ShowDetailButton.text2")); isDetailShown = true; } ((JDialog)getTopLevelAncestor()).pack(); } }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { if (debug) { ex.printStackTrace(); } JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(JSVGViewerFrame.this, "ERROR"); dialog.setModal(false); dialog.setVisible(true); }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { if (svgUserAgent != null) { super.displayError(ex); } else { JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(JSVGCanvas.this, "ERROR"); dialog.setModal(false); dialog.setVisible(true); // Safe to be called from any thread } } }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { if (svgUserAgent != null) { super.displayError(ex); } else { JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(JSVGCanvas.this, "ERROR"); dialog.setModal(false); dialog.setVisible(true); // Safe to be called from any thread } } }
/** * Displays an error resulting from the specified Exception. */ public void displayError(Exception ex) { if (svgUserAgent != null) { super.displayError(ex); } else { JErrorPane pane = new JErrorPane(ex, JOptionPane.ERROR_MESSAGE); JDialog dialog = pane.createDialog(JSVGCanvas.this, "ERROR"); dialog.setModal(false); dialog.setVisible(true); // Safe to be called from any thread } } }