Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JinternalFrame remove title bar but keep drag function

843807Feb 21 2010 — edited Feb 21 2010
Hi all,

I need to remove the titlebar from a JInternalFrame but keep the ability to drag the frame.
I can remove the titlebar with the following:

((BasicInternalFrameUI) getUI()).setNorthPane(new NorthPane(this));

But need to then be able to still drag the frame by dragging on a JLable added as a child component to the frame.

I am doing this in order to totaly change the look and feel of the JInternalFrame whilst keeping its functionality.

Any help would be greatly appreciated.

Regards

Liam Morren
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2010
Added on Feb 21 2010
3 comments
479 views