Revision 8284 trunk/libraries/libCorePlugin/src/com/iver/core/mdiManager/NewSkin.java
NewSkin.java | ||
---|---|---|
386 | 386 |
private void addJInternalFrame(JInternalFrame wnd, WindowInfo wi) { |
387 | 387 |
wnd.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE); |
388 | 388 |
wnd.addInternalFrameListener(new FrameListener()); |
389 |
|
|
389 |
updateFrameProperties(wnd, wi); |
|
390 |
|
|
390 | 391 |
if (wi.isModeless() || wi.isPalette()) { |
391 | 392 |
panel.add(wnd, JDesktopPane.PALETTE_LAYER); |
392 | 393 |
if (wi.isPalette()) |
... | ... | |
403 | 404 |
} |
404 | 405 |
} |
405 | 406 |
|
407 |
private void updateFrameProperties(JInternalFrame frame, WindowInfo wi) { |
|
408 |
frame.setSize(wi.getWidth(), wi.getHeight()); |
|
409 |
frame.setTitle(wi.getTitle()); |
|
410 |
frame.setVisible(wi.isVisible()); |
|
411 |
frame.setResizable(wi.isResizable()); |
|
412 |
frame.setIconifiable(wi.isIconifiable()); |
|
413 |
frame.setMaximizable(wi.isMaximizable()); |
|
414 |
frame.setLocation(wi.getX(), wi.getY()); |
|
415 |
frame.setNormalBounds(wi.getNormalBounds()); |
|
416 |
try { |
|
417 |
frame.setMaximum(wi.isMaximized()); |
|
418 |
} catch (PropertyVetoException e) { |
|
419 |
// TODO Auto-generated catch block |
|
420 |
//e.printStackTrace(); |
|
421 |
} |
|
422 |
} |
|
423 |
|
|
406 | 424 |
/** |
407 | 425 |
* DOCUMENT ME! |
408 | 426 |
* |
Also available in: Unified diff