static void enlargeFrameLeftAndRight(Component c, int x) { Frame f = getAWTFrame(c); if (f == null) ret; Rectangle r = getBounds(f); setBounds(r.x-x, r.y, r.width+x*2, r.height, f); }