code: public static void track(Window window) {
          Preferences prefs = node().node("Windows");
  
          String bounds = prefs.get(window.getName() + ".bounds", null);
          if (bounds != null) {
              Rectangle rect = (Rectangle) ConverterRegistry.instance().convert(
                      Rectangle.class, bounds);
              window.setBounds(rect);
          }
  
          window.addComponentListener(WINDOW_DIMENSIONS);
      }
docs: Restores the window size, position and state if possible. Tracks the
  window size, position and state.
  
  @param window