if(evt.getPropertyName().equals(IS_ICON_PROPERTY)){
SwingUtilities.invokeLater(new Runnable(){
public void run() {
_desktop.addIconifiedFrame(CDIInternalFrame.this );
}});
throw new PropertyVetoException("override iconify", evt);
}
if(evt.getPropertyName().equals(IS_CLOSED_PROPERTY)){
if(forceClose)
return;
if(this.isIcon)
return;
if (optionMenu.isVisible()) {
optionMenu.setVisible(false);
return;
}
SwingUtilities.invokeLater(new Runnable(){
public void run() {
optionMenu.show( CDIInternalFrame.this,
CDIInternalFrame.this.getWidth() - optionMenu.getWidth(), 0);
}});
throw new PropertyVetoException("override close", evt);
}
}