JRootPane: setWindowDecorationStyle(int style) : JRootPane « javax.swing « Java by API






JRootPane: setWindowDecorationStyle(int style)

 

import javax.swing.JFrame;
import javax.swing.JRootPane;

public class MainClass {

  public static void main(final String args[]) {
    JFrame frame = new JFrame("Adornment Example");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setUndecorated(true);
    frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
    frame.setSize(300, 100);
    frame.setVisible(true);

  }
}
           
         
  








Related examples in the same category

1.JRootPane.FRAME
2.JRootPane: addAncestorListener(AncestorListener listener)
3.JRootPane: getAccessibleContext()
4.JRootPane: getContentPane()
5.JRootPane: setDefaultButton(JButton defaultButton)