public static void loadWindowSize(String windowName, Window window) {
try {
Preferences preferences = Preferences.userNodeForPackage(DBBrowserConfig.class);
if (preferences != null && window != null) {
try {
preferences.sync();
} catch (BackingStoreException e) {
}
int x = preferences.getInt("window." + windowName + ".x", -1);
int y = preferences.getInt("window." + windowName + ".y", -1);
int w = preferences.getInt("window." + windowName + ".width", -1);