Changeset 5194 in josm
- Timestamp:
- 2012-04-16T21:57:13+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r5050 r5194 45 45 JTabbedPane about = new JTabbedPane(); 46 46 47 Version version = Version.getInstance(); 48 47 49 JTextArea readme = new JTextArea(); 48 50 readme.setEditable(false); 49 51 readme.setText(Version.loadResourceFile(Main.class.getResource("/README"))); 52 readme.setCaretPosition(0); 53 54 JTextArea revision = new JTextArea(); 55 revision.setEditable(false); 56 revision.setText(version.getReleaseAttributes()); 57 revision.setCaretPosition(0); 50 58 51 59 JTextArea contribution = new JTextArea(); 52 60 contribution.setEditable(false); 53 61 contribution.setText(Version.loadResourceFile(Main.class.getResource("/CONTRIBUTION"))); 62 contribution.setCaretPosition(0); 54 63 55 64 JTextArea license = new JTextArea(); 56 65 license.setEditable(false); 57 66 license.setText(Version.loadResourceFile(Main.class.getResource("/LICENSE"))); 58 59 Version version = Version.getInstance(); 67 license.setCaretPosition(0); 60 68 61 69 JPanel info = new JPanel(new GridBagLayout()); 62 JLabel caption = new JLabel("JOSM -" + tr("Java OpenStreetMap Editor"));70 JLabel caption = new JLabel("JOSM – " + tr("Java OpenStreetMap Editor")); 63 71 caption.setFont(new Font("Helvetica", Font.BOLD, 20)); 64 72 info.add(caption, GBC.eol().fill(GBC.HORIZONTAL).insets(10,0,0,0)); … … 76 84 info.add(new UrlLabel("http://josm.openstreetmap.de/newticket",2), GBC.eol().fill(GBC.HORIZONTAL)); 77 85 78 JTextArea revision = new JTextArea();79 revision.setEditable(false);80 revision.setText(version.getReleaseAttributes());81 86 about.addTab(tr("Info"), info); 82 87 about.addTab(tr("Readme"), createScrollPane(readme)); -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r5145 r5194 1063 1063 a.setEditable(false); 1064 1064 a.setText(b.toString()); 1065 a.setCaretPosition(0); 1065 1066 JOptionPane.showMessageDialog(Main.parent, new JScrollPane(a), tr("Plugin information"), 1066 1067 JOptionPane.INFORMATION_MESSAGE); … … 1076 1077 description.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); 1077 1078 description.setBackground(UIManager.getColor("Panel.background")); 1079 description.setCaretPosition(0); 1078 1080 1079 1081 pluginTab.add(description, GBC.eop().fill(GBC.HORIZONTAL));
Note:
See TracChangeset
for help on using the changeset viewer.