Changeset 1184 in josm for trunk/src/org
- Timestamp:
- 2008-12-28T01:11:24+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/PleaseWaitDialog.java
r1169 r1184 4 4 import java.awt.Component; 5 5 import java.awt.GridBagLayout; 6 import java.awt.event.ComponentEvent; 7 import java.awt.event.ComponentListener; 6 8 7 9 import javax.swing.BorderFactory; … … 37 39 setSize(Main.pref.getInteger("progressdialog.size",400),100); 38 40 setLocationRelativeTo(Main.parent); 41 addComponentListener(new ComponentListener() { 42 public void componentHidden(ComponentEvent e) {} 43 public void componentMoved(ComponentEvent e) {} 44 public void componentShown(ComponentEvent e) {} 45 public void componentResized(ComponentEvent ev) { 46 int w = getWidth(); 47 if(w > 200) 48 Main.pref.putInteger("progressdialog.size",w); 49 } 50 }); 39 51 } 40 52 }
Note:
See TracChangeset
for help on using the changeset viewer.