public class AboutAction extends JosmAction
JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
sc
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
AboutAction()
Constructs a new
AboutAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
private static JScrollPane |
createScrollPane(JosmTextArea area) |
private static void |
displayErrorMessage(JTextArea ta,
String msg) |
private void |
setTextFromResourceFile(JTextArea ta,
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
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public AboutAction()
AboutAction
.public void actionPerformed(ActionEvent e)
private void setTextFromResourceFile(JTextArea ta, 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(JTextArea ta, String msg)
private static JScrollPane createScrollPane(JosmTextArea area)