Iconable Property of JInternalFrame Bean

Iconable Property of JInternalFrame Bean is not working properly.

According to the Iconable Property of JInternal Frame, when a user clicks on it it will shrunk down and displayed as an icon-image in the left bottom.

But it is deviating from the usual.

It is not shrinking down.

I know something going wrong.

Can anyone please help regarding the above issue.

Here is the code snippet…

elements.JInternalFrame1.resizable = true;
elements.JInternalFrame1.iconifiable = true;
elements.JInternalFrame1.closable = true;
elements.JInternalFrame1.title = "Internal Frame1";
elements.JInternalFrame1.maximizable = true;
elements.JInternalFrame1.visible = true;

regards,
aservoy

I am thinking the only problem is of setting the ContentPane for the JInternalFrame.

Then, How can i set the Content Pane of the JInternalFrame to the current Form?

Regards,
aservoy

Can anyone have any suggestion, please.

regards,
aservoy