Java Rectangle Create Parse storeBounds(String name, Window window)

Here you can find the source of storeBounds(String name, Window window)

Description

Call this to record the fact that the window/dialog with the given name has moved.

License

Open Source License

Declaration

public static void storeBounds(String name, Window window) 

Method Source Code


//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());
    }
}

Related

  1. getRectangle(String rectStr)
  2. newRectangle(int x1, int y1, int x2, int y2)
  3. rectangleToString(Rectangle r)
  4. rectangleToString(Rectangle r)
  5. rectangleToString(Rectangle rectangle)
  6. stringToBounds(String str, Rectangle defaultRect)
  7. stringToRectangle(String s)
  8. stringToRectangle(String s, Rectangle defaultValue)
  9. stringToRectangle(String str)