Changeset 5493 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2012-09-01T22:16:27+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r5194 r5493 20 20 import org.openstreetmap.josm.Main; 21 21 import org.openstreetmap.josm.data.Version; 22 import org.openstreetmap.josm.gui.util.GuiHelper; 22 23 import org.openstreetmap.josm.plugins.PluginHandler; 23 24 import org.openstreetmap.josm.tools.GBC; … … 43 44 44 45 public void actionPerformed(ActionEvent e) { 45 JTabbedPane about = new JTabbedPane(); 46 final JTabbedPane about = new JTabbedPane(); 46 47 47 48 Version version = Version.getInstance(); … … 91 92 about.addTab(tr("Plugins"), new JScrollPane(PluginHandler.getInfoPanel())); 92 93 93 about.setPreferredSize(new Dimension(500,300)); 94 95 JOptionPane.showMessageDialog(Main.parent, about, tr("About JOSM..."), 94 // Intermediate panel to allow proper optionPane resizing 95 JPanel panel = new JPanel(new GridBagLayout()); 96 panel.setPreferredSize(new Dimension(600, 300)); 97 panel.add(about, GBC.std().fill()); 98 99 GuiHelper.prepareResizeableOptionPane(panel, panel.getPreferredSize()); 100 JOptionPane.showMessageDialog(Main.parent, panel, tr("About JOSM..."), 96 101 JOptionPane.INFORMATION_MESSAGE, ImageProvider.get("logo")); 97 102 }
Note:
See TracChangeset
for help on using the changeset viewer.