public void setUndecorated(boolean undecorated)
{
if (m_undecorated!=undecorated) {
m_undecorated=undecorated;
BasicInternalFrameUI ui=(BasicInternalFrameUI)getUI();
if (undecorated) {
putClientProperty("titlePane", ui.getNorthPane());
putClientProperty("border", getBorder());
ui.setNorthPane(null);
setBorder(null);
} else {
ui.setNorthPane((JComponent)getClientProperty("titlePane"));
setBorder((Border)getClientProperty("border"));
putClientProperty("titlePane", null);
putClientProperty("border", null);
}
}