Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As fas as I know, there is not way to do it. You can create an own class for your customized windows which extends JWindow for example. You can create the style on you own then. It's just a little work to do.</p> <pre><code>// add pacakge and imports as needed... /** * Sample class implementation for windows with own frame style. * Additional constructors may be added as needed. Default constructor used * to show principle. */ public class MyWindow extends JWindow { public MyWindow() { super(); initUI(); } private void initUI() { setLayout(new BorderLayout()); add(new MyWindowFrameTop(this)); add(new MyWindowFrameLeft(this)); add(new MyWindowFrameRight(this)); add(new MyWindowFrameBottom(this)); } } </code></pre> <p>The JWindow is a "first-class citizen" as the Java API doc tells. It's a full featured window within the desktop but misses all implementations for window actions like close, maximize, minimize and the window menu. The implementation of this features might be added like above by using the BorderLayout and putting own implementations of the frame objects into work. The MyWindowFrameXXX objects might be JPanels which draw the wanted frame box parts, the title image and so forth. It's also possible to add buttons for window actions and to implement mouse actions for resize. To implement this, the frame objects need the parent windows reference to perform all actions on the window. </p> <p>It would go way to far here to write everything down here. I think, the principle is shown and I also do not know what the actual effect to be implemented really is.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload