I've only found ways to completely remove title bar + borders. I want to create a window in Swing without title bar buttons but still retain the default system's border. Is this possible?
The following link has a complete working example that uses remove()
on the buttons:
http://www.coderanch.com/t/344419/GUI/java/deactivate-close-minimise-resizable-window
You can use the frame's setUndecorated()
method and render your own decorations. You may want to leverage the JInternalFrame
UI defaults, which typically recapitulate those of the platform's default Look & Feel, as shown here. These seem especially relevant:
InternalFrame.activeTitleBackground InternalFrame.activeTitleForeground InternalFrame.inactiveTitleBackground InternalFrame.inactiveTitleForeground
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With