When setUndecorated() enabled, nothing can be drawn on the form.

    1 answer 1

    What is it like? setUndecorated() turns off only the standard frame, collapse, expand, close, and you draw on the frame.

    • If I turn on setUndecorated (), then just nothing is drawn on the frame - sashok724
    • Code Throw ... - Gorets
    • Code public Main () {setLayout (new BorderLayout ()); setTitle (Settings.title); setSize (380, 430); setLocationRelativeTo (null); setResizable (false); setAlwaysOnTop (true); setUndecorated (true); setVisible (true); } - sashok724
    • Well, probably good, but where do you try to draw? - Gorets
    • On JPanel, which is added to the form - sashok724