Before you start adding components to the JFrame you might want to make the main application window open in the center of the screen and give the application a title in the main window title bar. To center the main application window do the following:
Right-click the JFrame and choose Properties
Click on the Code tab (Figure 5)
For Form Size Policy choose Generate Resize Code
Be sure Generate Center is checked
Click the Close button
a photo speaks a thousand words
Open A form in the middle of the Screen
Posted by
rest.train
at
20:41
Tuesday, 29 March 2011
Labels:
JAVA
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment