Changeset 5886 in josm for trunk/src/org/openstreetmap/josm/actions/AboutAction.java
- Timestamp:
- 2013-04-19T22:21:57+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r5849 r5886 15 15 import javax.swing.JScrollPane; 16 16 import javax.swing.JTabbedPane; 17 import javax.swing.JTextArea;18 17 19 18 import org.openstreetmap.josm.Main; 20 19 import org.openstreetmap.josm.data.Version; 21 20 import org.openstreetmap.josm.gui.util.GuiHelper; 21 import org.openstreetmap.josm.gui.widgets.JosmTextArea; 22 22 import org.openstreetmap.josm.plugins.PluginHandler; 23 23 import org.openstreetmap.josm.tools.BugReportExceptionHandler; … … 38 38 public class AboutAction extends JosmAction { 39 39 40 /** 41 * Constructs a new {@code AboutAction}. 42 */ 40 43 public AboutAction() { 41 44 super(tr("About"), "about", tr("Display the about screen."), … … 49 52 Version version = Version.getInstance(); 50 53 51 JTextArea readme = new JTextArea(); 54 JosmTextArea readme = new JosmTextArea(); 52 55 readme.setEditable(false); 53 56 readme.setText(Version.loadResourceFile(Main.class.getResource("/README"))); 54 57 readme.setCaretPosition(0); 55 58 56 JTextArea revision = new JTextArea(); 59 JosmTextArea revision = new JosmTextArea(); 57 60 revision.setEditable(false); 58 61 revision.setText(version.getReleaseAttributes()); 59 62 revision.setCaretPosition(0); 60 63 61 JTextArea contribution = new JTextArea(); 64 JosmTextArea contribution = new JosmTextArea(); 62 65 contribution.setEditable(false); 63 66 contribution.setText(Version.loadResourceFile(Main.class.getResource("/CONTRIBUTION"))); 64 67 contribution.setCaretPosition(0); 65 68 66 JTextArea license = new JTextArea(); 69 JosmTextArea license = new JosmTextArea(); 67 70 license.setEditable(false); 68 71 license.setText(Version.loadResourceFile(Main.class.getResource("/LICENSE"))); … … 103 106 } 104 107 105 private JScrollPane createScrollPane(JTextArea area) { 108 private JScrollPane createScrollPane(JosmTextArea area) { 106 109 area.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 107 110 area.setOpaque(false);
Note:
See TracChangeset
for help on using the changeset viewer.
