JAVA TIPS: How to center a JFrame on screen in netbeans java
Right click on the JFrame, select Code. In the field of Form Size Policy, the default selection is Generate pack(). If you’d like to center this JFrame on screen after you initiate the application, you need to select Generate Resize Code. Then check Generate Center.
Comments
Post a Comment