return;
Point pos = getLocation();
Dimension s = getSize();
Rectangle r = new Rectangle(pos.x, pos.y, s.width, s.height);
XJPreferences prefs = XJApplication.shared().getPreferences();
// cleanup the prefs by making sure no more than MAX_WINDOWS_BOUND_KEYS
// are existing in the prefs.
String[] keys = prefs.getKeys();
if(keys != null) {
int count = 0;
for(String key : keys) {
if(key.startsWith(PREF_WINDOWS_BOUNDS_PREFIX)) {
count++;
if(count > MAX_WINDOWS_BOUND_KEYS) {
prefs.remove(key);
}
}
}
}
prefs.setObject(PREF_WINDOWS_BOUNDS_PREFIX+name, r);
}