Search code examples
javaswingwindowjframejwindow

Can I create a Window in Java with no caption buttons?


Is it possible to create a Window object of some sort in Java that has a frame and border, but no caption buttons (minimise, restore, close).

Naturally, I can't use the undecorated setting. Further, the window needs to:

  • Have a platform-rendered border
  • Have a titlebar
  • Have no caption buttons. If need be, I'll take care of disposing the window programmatically.
  • Use the default, or System Look and Feel

Here is an example:

captionless window


Solution

  • The short answer is no.

    The longer answer is, probably, but you'll need to investigate a JNI/JNA implementation