void (final Point pnt) { int[] coords = mySelectedContainer.getGridLayoutManager().getGridCellCoords(mySelectedContainer, myIsRow); int prevCoord = coords [myResizeLine-1]; int newCoord = myIsRow ? pnt.y : pnt.x; if (newCoord < prevCoord + MINIMUM_RESIZED_SIZE) { return; } int newSize = newCoord - prevCoord; if (!myEditor.ensureEditable()) { return; } mySelectedContainer.getGridLayoutManager().processCellResized(mySelectedContainer, myIsRow, myResizeLine-1, newSize); mySelectedContainer.revalidate(); myEditor.refreshAndSave(true); }