Changeset 1992 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-08-23T23:00:18+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r1987 r1992 1 1 package org.openstreetmap.josm.gui; 2 3 import static org.openstreetmap.josm.tools.I18n.tr;4 2 5 3 import java.awt.Component; … … 21 19 import javax.swing.KeyStroke; 22 20 23 import org.openstreetmap.josm.Main;24 21 import org.openstreetmap.josm.tools.GBC; 25 22 import org.openstreetmap.josm.tools.ImageProvider; … … 44 41 */ 45 42 public ExtendedDialog(Component parent, String title, Component content, String[] buttonTexts, String[] buttonIcons) { 46 super(JOptionPane.getFrameForComponent(parent), title, true );43 super(JOptionPane.getFrameForComponent(parent), title, true /* modal */); 47 44 this.parent = parent; 48 45 bTexts = buttonTexts; -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r1987 r1992 23 23 import javax.swing.Box; 24 24 import javax.swing.JButton; 25 import javax.swing.JDialog; 25 26 import javax.swing.JFrame; 26 27 import javax.swing.JLabel; 28 import javax.swing.JOptionPane; 27 29 import javax.swing.JPanel; 28 30 import javax.swing.ImageIcon; … … 162 164 stickyActionListener = new ActionListener(){ 163 165 public void actionPerformed(ActionEvent e) { 164 final J Frame f = new JFrame(name);166 final JDialog f = new JDialog(JOptionPane.getFrameForComponent(Main.parent),false /* not modal*/); 165 167 parent.remove(ToggleDialog.this); 166 168 f.getContentPane().add(ToggleDialog.this);
Note:
See TracChangeset
for help on using the changeset viewer.