1 | public void componentMoved(ComponentEvent evt)↵ | | 1 | public void componentResized(ComponentEvent evt)↵
|
2 | {↵ | | 2 | {↵
|
3 | if(System.currentTimeMillis() - start < 1000)↵ | | 3 | if(System.currentTimeMillis() - start < 1000)↵
|
4 | {↵ | | 4 | {↵
|
5 | Rectangle r = win.getBounds();↵ | | 5 | Rectangle r = win.getBounds();↵
|
6 | if(!windowOpened && r.equals(required))↵ | | 6 | if(!windowOpened && r.equals(required))↵
|
7 | return;↵ | | 7 | return;↵
|
|
8 | if(!r.equals(desired))↵ | | 8 | if(!r.equals(desired))↵
|
9 | {↵ | | 9 | {↵
|
10 | Log.log(Log.DEBUG,GUIUtilities.class,↵ | | 10 | Log.log(Log.DEBUG,GUIUtilities.class,↵
|
11 | "Window resize blocked: " + win.getBounds());↵ | | 11 | "Window resize blocked: " + win.getBounds());↵
|
12 | win.setBounds(desired);↵ | | 12 | win.setBounds(desired);↵
|
13 | }↵ | | 13 | }↵
|
14 | }↵ | | 14 | }↵
|
|
15 | win.removeComponentListener(this);↵ | | 15 | win.removeComponentListener(this);↵
|
16 | | | 16 |
|