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 run or startup my app. so where and how to do that in my app?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
If you want to open the JFrame maximized by default in swing you can use
JFrame. setExtendedState()
, illusrated below:Also remember that you should not have
JFrame.pack()
orJFrame.setMaximimumSize()
orJFrame.setSize()
in the same menthod (here constructor).If you want you Application to be Full Screen..Use Toolkit...
Use this code in constructor
If you are using Netbeans then after
initcomponent()
method you can use this code, it will help you out:Use this code on Constructor.
ater using this whatever frame i have designed, that components are not fix in center or means disbalanced all the content that are designed using netbeans drag and drop
I guess you are using JFrames for your App.