How to set full Screen Mode of My App which is made in netbeans platform?

前端 未结 7 1849
时光说笑
时光说笑 2020-12-21 16:54

I m made Desktop App in netbeans platform in java.now wwhen i run my app it will open by default size of netbeans platform configuration.but i want full screen mode when i r

7条回答
  •  清酒与你
    2020-12-21 17:51

    I guess you are using JFrames for your App.

    // to start with
    JPanel myUI = createUIPanel();
    JFrame frame = new JFrame();
    frame.add(myUI);
    
    // .. and later ...
    
    JFrame newFrame = new JFrame();
    newFrame.setUndecorated();
    newFrame.add(myUI);
    

提交回复
热议问题