Changeset 1999 in josm for trunk/src/org
- Timestamp:
- 2009-08-29T10:16:17+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r1992 r1999 165 165 public void actionPerformed(ActionEvent e) { 166 166 final JDialog f = new JDialog(JOptionPane.getFrameForComponent(Main.parent),false /* not modal*/); 167 parent.remove(ToggleDialog.this); 167 if (parent != null) { 168 parent.remove(ToggleDialog.this); 169 } 168 170 f.getContentPane().add(ToggleDialog.this); 169 171 f.addWindowListener((winadapter = new WindowAdapter(){ … … 201 203 titleBar.setVisible(false); 202 204 203 // doLayout() - workaround 204 parent.setVisible(false); 205 parent.setVisible(true); 205 if (parent != null) { 206 // doLayout() - workaround 207 parent.setVisible(false); 208 parent.setVisible(true); 209 } 206 210 } 207 211 };
Note:
See TracChangeset
for help on using the changeset viewer.