if ((internalFrame == null) || (internalFrame.isClosed())) {
internalFrame = new JInternalFrame("Internal Frame",
true, true, true, true);
internalFrame.setBounds(50, 50, 200, 100);
if (internalFrame.isIconifiable()) {
System.out.println("It's iconifiable...");
}
else { // bug work around...
internalFrame.setIconifiable(true);
}
desktop.add(internalFrame, new Integer(1));
}