Here you can find the source of storeBounds(String name, Window window)
public static void storeBounds(String name, Window window)
//package com.java2s; //License from project: Open Source License import java.awt.*; import java.util.*; public class Main { private static HashMap<String, Rectangle> dialogGeometries = new HashMap<>(); /**//from ww w . j a v a 2s. com * Call this to record the fact that the window/dialog with the given name has moved. */ public static void storeBounds(String name, Window window) { dialogGeometries.put(name, window.getBounds()); } }