awtFrame.reshape(p.x + x, p.y + y, width + ins.left + ins.right, height + ins.top + ins.bottom); }*/ if (!swingPeer.isReshapeInProgress) { Insets ins = swingPeer.getInsets(); awtFrame.reshape(x + x, y + y, width + ins.left + ins.right, height + ins.top + ins.bottom);
awtFrame.reshape(p.x + x, p.y, width + ins.left + ins.right, height + ins.bottom + ins.top);
        public void reshape(int x, int y, int width, int height) {            super.reshape(x, y, width, height);            //TODO fix it            /*            if (awtFrame.isVisible()) {                Point p = awtFrame.getLocationOnScreen();                Insets ins = swingPeer.getInsets();                awtFrame.reshape(p.x + x, p.y + y, width + ins.left + ins.right, height + ins.top + ins.bottom);            }*/            if (!swingPeer.isReshapeInProgress) {                Insets ins = swingPeer.getInsets();                awtFrame.reshape(x + x, y + y, width + ins.left + ins.right, height + ins.top + ins.bottom);            }        }