private void showOntologyIRIDocumentation() { try { Desktop.getDesktop().browse(ONTOLOGY_IRI_DOCUMENTATION); } catch (IOException ex) { ErrorLogPanel.showErrorDialog(ex); } }
public ErrorLogPanel(ErrorLog errorLog, SendErrorReportHandler handler) { this.errorLog = errorLog; this.errorReportHandler = handler; setLayout(new BorderLayout()); textArea = new JTextArea(); textArea.setFont(new Font("monospaced", Font.PLAIN, 12)); JPanel contentPane = new JPanel(new BorderLayout(7, 7)); contentPane.add(new JScrollPane(textArea)); if (handler != null) { JPanel buttonPanel = new JPanel(new BorderLayout()); buttonPanel.add(new JButton(new AbstractAction("Clear Errors") { public void actionPerformed(ActionEvent e) { if (handleSendErrorReport()) { ErrorLogPanel.this.errorLog.clear(); fillLog(); repaint(); } } }), BorderLayout.WEST); contentPane.add(buttonPanel, BorderLayout.SOUTH); } add(contentPane, BorderLayout.CENTER); fillLog(); }
public void setVisible(boolean b) { fillLog(); Component parent = getParent(); if (parent != null) { int w = (parent.getWidth() - getWidth()) / 2; int h = (parent.getHeight() - getHeight()) / 2; setLocation(w, h); } super.setVisible(b); }
private void showErrors() { panel.fillLog(); JOptionPane optionPane = new JOptionPane(panel, JOptionPane.PLAIN_MESSAGE, JOptionPane.DEFAULT_OPTION); JDialog dlg = optionPane.createDialog(SwingUtilities.getAncestorOfClass(Frame.class, this), "Errors"); dlg.setResizable(true); dlg.setVisible(true); } }
private void showErrors() { panel.fillLog(); JOptionPane optionPane = new JOptionPane(panel, JOptionPane.PLAIN_MESSAGE, JOptionPane.DEFAULT_OPTION); JDialog dlg = optionPane.createDialog(SwingUtilities.getAncestorOfClass(Frame.class, this), "Errors"); dlg.setResizable(true); dlg.setVisible(true); } }
private void showVersionIRIDocumentation() { try { Desktop.getDesktop().browse(VERSION_IRI_DOCUMENTATION); } catch (IOException ex) { ErrorLogPanel.showErrorDialog(ex); } }
public void setVisible(boolean b) { fillLog(); Component parent = getParent(); if (parent != null) { int w = (parent.getWidth() - getWidth()) / 2; int h = (parent.getHeight() - getHeight()) / 2; setLocation(w, h); } super.setVisible(b); }
public ErrorLogPanel(ErrorLog errorLog, SendErrorReportHandler handler) { this.errorLog = errorLog; this.errorReportHandler = handler; setLayout(new BorderLayout()); textArea = new JTextArea(); textArea.setFont(new Font("monospaced", Font.PLAIN, 12)); JPanel contentPane = new JPanel(new BorderLayout(7, 7)); contentPane.add(new JScrollPane(textArea)); if (handler != null) { JPanel buttonPanel = new JPanel(new BorderLayout()); buttonPanel.add(new JButton(new AbstractAction("Clear Errors") { /** * */ private static final long serialVersionUID = 6061428199099888086L; public void actionPerformed(ActionEvent e) { if (handleSendErrorReport()) { ErrorLogPanel.this.errorLog.clear(); fillLog(); repaint(); } } }), BorderLayout.WEST); contentPane.add(buttonPanel, BorderLayout.SOUTH); } add(contentPane, BorderLayout.CENTER); fillLog(); }
private void showVersionIRIDocumentation() { try { Desktop.getDesktop().browse(VERSION_IRI_DOCUMENTATION); } catch (IOException ex) { ErrorLogPanel.showErrorDialog(ex); } }
public void setVisible(boolean b) { fillLog(); Component parent = getParent(); if (parent != null) { int w = (parent.getWidth() - getWidth()) / 2; int h = (parent.getHeight() - getHeight()) / 2; setLocation(w, h); } super.setVisible(b); }
public ErrorLogPanel(ErrorLog errorLog, SendErrorReportHandler handler) { this.errorLog = errorLog; this.errorReportHandler = handler; setLayout(new BorderLayout()); textArea = new JTextArea(); textArea.setFont(new Font("monospaced", Font.PLAIN, 12)); JPanel contentPane = new JPanel(new BorderLayout(7, 7)); contentPane.add(new JScrollPane(textArea)); if (handler != null) { JPanel buttonPanel = new JPanel(new BorderLayout()); buttonPanel.add(new JButton(new AbstractAction("Clear Errors") { /** * */ private static final long serialVersionUID = 6061428199099888086L; public void actionPerformed(ActionEvent e) { if (handleSendErrorReport()) { ErrorLogPanel.this.errorLog.clear(); fillLog(); repaint(); } } }), BorderLayout.WEST); contentPane.add(buttonPanel, BorderLayout.SOUTH); } add(contentPane, BorderLayout.CENTER); fillLog(); }
private void showOntologyIRIDocumentation() { try { Desktop.getDesktop().browse(ONTOLOGY_IRI_DOCUMENTATION); } catch (IOException ex) { ErrorLogPanel.showErrorDialog(ex); } }
private void showVersionIRIDocumentation() { try { Desktop.getDesktop().browse(VERSION_IRI_DOCUMENTATION); } catch (IOException ex) { ErrorLogPanel.showErrorDialog(ex); } }
private void showOntologyIRIDocumentation() { try { Desktop.getDesktop().browse(ONTOLOGY_IRI_DOCUMENTATION); } catch (IOException ex) { ErrorLogPanel.showErrorDialog(ex); } }
public void actionPerformed(ActionEvent e) { try { UIUtil.openRequest(this); } catch (Exception e1) { ErrorLogPanel.showErrorDialog(e1); } }
public void actionPerformed(ActionEvent e) { try { UIUtil.openRequest(this); } catch (Exception e1) { ErrorLogPanel.showErrorDialog(e1); } }
public void actionPerformed(ActionEvent e) { try { UIUtil.openRequest(this); } catch (Exception e1) { ErrorLogPanel.showErrorDialog(e1); } }