Is there any way I can make a JFrame look like JInternalFrame? It looks bad at runtime when you change the look-and-feel, but the mainframe doesn’t change.
This is currently a deficiency in the Swing classes. A top levelwindow is forced to assume the look-and-feel of the native windowsystem. There is no technical reason why it would not be possibleto make a borderless frame part of the standard classes. It couldprovide its own titlebar, border, and other decorations.
However, doing this would disable the native window manager operations, suchas right-clicking on the titlebar in Windows 95/98/NT. This appearsto be why it wasn’t done.