• Post Reply Bookmark Topic Watch Topic
  • New Topic

Remove Jinternalform Tital bar  RSS feed

 
Shashika Thiran
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know how to remove Jframe Title bar.
frame.setUndecorated(true);
But it's not work with Jinternalframe.
Have any idea to do that?

Thanks.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
((javax.swing.plaf.metal.MetalInternalFrameUI) internalFrame.getUI()).setNorthPane(null);
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which does not work when the system look&feel is used.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
also doesn't work if using C#

so, unless the OP gives the specifics, he gets a 'default' answer
 
Shashika Thiran
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's works.
Thanks a lot.
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:also doesn't work if using C#

so, unless the OP gives the specifics, he gets a 'default' answer

I was just sending out a warning that the look&feel should not be changed / changeable if this technique is used, to prevent any nasty errors.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!