int x = 10; int y = 10;  Point loc = ws.getComponentLocation(); if (loc != null) { x = (int) loc.getX(); y = (int) loc.getY(); }  MapHandler mh = (MapHandler) getBeanContext(); Frame frame = null; if (mh != null) { frame = (Frame) mh.get(java.awt.Frame.class); }  ws.displayInWindow(frame, x, y, w, h);
ws.displayInWindow(frame, -1, -1, w, h);
            public void actionPerformed(ActionEvent evt) {                WindowSupport ws = getWindowSupport();                int w = INITIAL_WIDTH;                int h = INITIAL_HEIGHT;                Dimension dim = ws.getComponentSize();                if (map != null && dim != null) {                    w = (int) dim.getWidth();                    h = (int) dim.getHeight();                }                int x = 10;                int y = 10;                Point loc = ws.getComponentLocation();                if (loc != null) {                    x = (int) loc.getX();                    y = (int) loc.getY();                }                MapHandler mh = (MapHandler) getBeanContext();                Frame frame = null;                if (mh != null) {                    frame = (Frame) mh.get(java.awt.Frame.class);                }                ws.displayInWindow(frame, x, y, w, h);            }