public final class AboutAction extends JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdaptersc| Constructor and Description |
|---|
AboutAction()
Constructs a new
AboutAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private static javax.swing.JScrollPane |
createScrollPane(JosmTextArea area) |
private static void |
displayErrorMessage(javax.swing.JTextArea ta,
java.lang.String msg) |
private void |
setTextFromResourceFile(javax.swing.JTextArea ta,
java.lang.String filePath)
Reads the contents of the resource file that is described by the
filePath-attribute and puts that text
into the JTextArea given by the ta-attribute. |
destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setTooltip, updateEnabledState, updateEnabledState, updateEnabledStateOnCurrentSelection, waitFuturepublic AboutAction()
AboutAction.public void actionPerformed(java.awt.event.ActionEvent e)
private void setTextFromResourceFile(javax.swing.JTextArea ta, java.lang.String filePath)
filePath-attribute and puts that text
into the JTextArea given by the ta-attribute.ta - the JTextArea to put the files contents intofilePath - the path where the resource file to read residesprivate static void displayErrorMessage(javax.swing.JTextArea ta, java.lang.String msg)
private static javax.swing.JScrollPane createScrollPane(JosmTextArea area)