JRootPane.FRAME : JRootPane « javax.swing « Java by API






JRootPane.FRAME

 
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: addAncestorListener(AncestorListener listener)
2.JRootPane: getAccessibleContext()
3.JRootPane: getContentPane()
4.JRootPane: setDefaultButton(JButton defaultButton)
5.JRootPane: setWindowDecorationStyle(int style)