public class AboutAction extends JosmAction
JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
sc
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, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledState
public 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)