Changeset 169 in josm for src/org/openstreetmap/josm/actions/PreferencesAction.java
- Timestamp:
- 2006-11-28T19:58:41+01:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/PreferencesAction.java
r168 r169 36 36 JPanel prefPanel = new JPanel(new GridBagLayout()); 37 37 prefPanel.add(prefDlg, GBC.eol().fill(GBC.BOTH)); 38 38 39 39 JOptionPane pane = new JOptionPane(prefPanel, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION); 40 40 JDialog dlg = pane.createDialog(Main.parent, tr("Preferences")); 41 42 if (dlg.getWidth() > 600) 43 dlg.setSize(600, dlg.getHeight()); 44 if (dlg.getHeight() > 450) 45 dlg.setSize(dlg.getWidth(), 450); 46 41 47 dlg.setVisible(true); 42 48 if (pane.getValue() instanceof Integer && (Integer)pane.getValue() == JOptionPane.OK_OPTION)
Note:
See TracChangeset
for help on using the changeset viewer.