Revision 9964
trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/FrameWindowSupport.java | ||
---|---|---|
340 | 340 |
if (windowInfo!=null && o!=null) { |
341 | 341 |
if (o instanceof JComponent) { |
342 | 342 |
JComponent component = (JComponent) o; |
343 |
windowInfo.setWidth(component.getWidth());
|
|
344 |
windowInfo.setHeight(component.getHeight());
|
|
345 |
windowInfo.setX(component.getX());
|
|
346 |
windowInfo.setY(component.getY());
|
|
347 |
windowInfo.setClosed(!component.isShowing());
|
|
343 |
windowInfo.updateWidth(component.getWidth());
|
|
344 |
windowInfo.updateHeight(component.getHeight());
|
|
345 |
windowInfo.updateX(component.getX());
|
|
346 |
windowInfo.updateY(component.getY());
|
|
347 |
windowInfo.updateClosed(!component.isShowing());
|
|
348 | 348 |
if (component instanceof JInternalFrame) { |
349 | 349 |
JInternalFrame iframe = (JInternalFrame) component; |
350 |
windowInfo.setNormalBounds(iframe.getNormalBounds());
|
|
351 |
windowInfo.setMaximized(iframe.isMaximum());
|
|
350 |
windowInfo.updateNormalBounds(iframe.getNormalBounds());
|
|
351 |
windowInfo.updateMaximized(iframe.isMaximum());
|
|
352 | 352 |
} |
353 | 353 |
} |
354 | 354 |
} |
Also available in: Unified diff