private void saveWindowState(Window window){
  if (!locationSet.contains(window) && window != primaryWindow) {
    return;
  }
  StateItem item=windows.get(window);
  Point location=window.getLocation();
  String state=location.x + "," + location.y;
  Dimension size=window.getSize();
  state+=";" + size.width + ","+ size.height;
  state+=";" + (window.isVisible() ? "1" : "0");
  settings.mapPut(SETTING,item.id,state);
}

private void saveWindowState ( Window window ) { if ( ! locationSet . contains ( window ) && window != primaryWindow ) { return ; } StateItem item = windows . get ( window ) ; Point location = window . getLocation ( ) ; String state = location . x + "," + location . y ; Dimension size = window . getSize ( ) ; state += ";" + size . width + "," + size . height ; state += ";" + ( window . isVisible ( ) ? "1" : "0" ) ; settings . mapPut ( SETTING , item . id , state ) ; }
save the window attributes for a single window .
