Archive for June, 2011

Showing JFrame at the Center of the Screen

The simplest way to get your java application JFrame to show at the center of the screen if you are using J2SE 1.4+, then you have access to the Window method: setLocationRelativeTo(Component c) For Example: Use can use null for the argument (in place of component arg) to center your top–level container or your JFrame […]

, ,

Leave a comment