Changeset 30685 in osm for applications/editors/josm/plugins/ext_tools
- Timestamp:
- 2014-09-23T19:57:25+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ext_tools/src/ext_tools/ExtTool.java
r30034 r30685 143 143 } 144 144 145 protected void showErrorMessage(String message, String details) { 146 final JPanel p = new JPanel(new GridBagLayout()); 147 p.add(new JMultilineLabel(message),GBC.eol()); 148 if (details != null) { 149 JTextArea info = new JTextArea(details, 20, 60); 150 info.setCaretPosition(0); 151 info.setEditable(false); 152 p.add(new JScrollPane(info), GBC.eop()); 153 } 145 protected void showErrorMessage(final String message, final String details) { 154 146 SwingUtilities.invokeLater(new Runnable() { 155 147 public void run() { 148 final JPanel p = new JPanel(new GridBagLayout()); 149 p.add(new JMultilineLabel(message),GBC.eol()); 150 if (details != null) { 151 JTextArea info = new JTextArea(details, 20, 60); 152 info.setCaretPosition(0); 153 info.setEditable(false); 154 p.add(new JScrollPane(info), GBC.eop()); 155 } 156 156 JOptionPane.showMessageDialog(Main.parent, p, tr("External tool error"), JOptionPane.ERROR_MESSAGE); 157 157 }
Note:
See TracChangeset
for help on using the changeset viewer.