Java Code Examples for javax.swing.JFrame.isDefaultLookAndFeelDecorated()

The following are Jave code examples for showing how to use isDefaultLookAndFeelDecorated() of the javax.swing.JFrame class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: OpenJSharp   File: InputMethodJFrame.java   View Source Code Vote up 5 votes
/**
 * Constructs a Swing based input method window.
 */
public InputMethodJFrame(String title, InputContext context) {
    super(title);
    //InputMethodJFrame never has LookAndFeel decoration
    if(JFrame.isDefaultLookAndFeelDecorated())
    {
       this.setUndecorated(true);
       this.getRootPane().setWindowDecorationStyle(JRootPane.NONE);
    }
    if (context != null) {
        this.inputContext = context;
    }
    setFocusableWindowState(false);
}
 
Example 2
Project: jdk8u-jdk   File: InputMethodJFrame.java   View Source Code Vote up 5 votes
/**
 * Constructs a Swing based input method window.
 */
public InputMethodJFrame(String title, InputContext context) {
    super(title);
    //InputMethodJFrame never has LookAndFeel decoration
    if(JFrame.isDefaultLookAndFeelDecorated())
    {
       this.setUndecorated(true);
       this.getRootPane().setWindowDecorationStyle(JRootPane.NONE);
    }
    if (context != null) {
        this.inputContext = context;
    }
    setFocusableWindowState(false);
}
 
Example 3
Project: openjdk-jdk10   File: InputMethodJFrame.java   View Source Code Vote up 5 votes
/**
 * Constructs a Swing based input method window.
 */
public InputMethodJFrame(String title, InputContext context) {
    super(title);
    //InputMethodJFrame never has LookAndFeel decoration
    if(JFrame.isDefaultLookAndFeelDecorated())
    {
       this.setUndecorated(true);
       this.getRootPane().setWindowDecorationStyle(JRootPane.NONE);
    }
    if (context != null) {
        this.inputContext = context;
    }
    setFocusableWindowState(false);
}