How to remove the title bar of a JInternalFrame - Java

1

I would like to know how to remove the title bar of a JInternalFrame. I have been trying with this code but the bar is not deleted.

   setUI(null);
    
asked by Leandro 30.03.2017 в 21:33
source

1 answer

1

I take the reference as the solution that worked for me:

((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);
    
answered by 03.04.2017 / 20:02
source