Changeset 2364 in josm for trunk/src


Ignore:
Timestamp:
2009-10-31T21:15:29+01:00 (12 years ago)
Author:
Gubaer
Message:

applied #3826: patch by bastik: Remember geometry of detached toggle dialogs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r2319 r2364  
    1212import java.awt.event.ActionEvent;
    1313import java.awt.event.ActionListener;
     14import java.awt.event.ComponentAdapter;
     15import java.awt.event.ComponentEvent;
    1416import java.awt.event.MouseAdapter;
    1517import java.awt.event.MouseEvent;
     
    359361                }
    360362            });
     363            addComponentListener(new ComponentAdapter() {
     364                @Override public void componentMoved(ComponentEvent e) {
     365                    rememberGeometry();
     366                }
     367                @Override public void componentResized(ComponentEvent e) {
     368                    rememberGeometry();
     369                }
     370            });
    361371
    362372            String bounds = Main.pref.get(preferencePrefix+".bounds",null);
Note: See TracChangeset for help on using the changeset viewer.