Not in all cases. For L&Fs that use a BasicInternalFrameUI subclass,
you can use BasicInternalFrameUI.setNorthPane(null) .
That didn't seem to work. Thanks. I will try to use some other component.
What L&F are you using?
You need to do something like (code assumed to be in JInternalFrame
subclass):
javax.swing.plaf.InternalFrameUI ui = getUI();
if (ui instanceof BasicInternalFrameUI)
((BasicInternalFrameUI) ui).setNorthPane(null);
Also, if the UI updates, it will reset, so your JInternalFrame
subclass needs:
public void updateUI() {
super.updateUI();
-- call the method that nulls the title pane or duplicate
-- the code here
}
Thank you, exactly what I needed.