tredontho tredontho - 1 year ago 40
Java Question

Is it possible to remove the little dropdown arrow in a JInternalFrame?

I'm using a

and I want to remove the dropdown in the upper left of the frame, as it serves no purpose (I've disabled resizeable, closable, etc.)

Persistent little dropdown arrow

I don't see a property for this, and I don't want to remove the entire title bar, as the title is necessary. I've looked around online, and basically come up empty here. I'm hoping it's something simple that I've just overlooked, as this is my first time using
, and I'm not exactly a GUI kind of guy to begin with.

Answer Source

Edit: hack to remove system menu in Windows:

BasicInternalFrameUI ui = (BasicInternalFrameUI)internalFrame.getUI();
Container north = (Container)ui.getNorthPane();