void (MouseEvent e) { if (myResizeLine > 0) { Point pnt = SwingUtilities.convertPoint(GridCaptionPanel.this, e.getPoint(), mySelectedContainer.getDelegee()); 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; String toolTip = mySelectedContainer.getGridLayoutManager().getCellResizeTooltip(mySelectedContainer, myIsRow, myResizeLine-1, newSize); final ActiveDecorationLayer layer = myEditor.getActiveDecorationLayer(); Rectangle rc; if (myIsRow) { rc = new Rectangle(0, e.getPoint().y, layer.getSize().width, 1); } else { rc = new Rectangle(e.getPoint().x, 0, 1, layer.getSize().height); } layer.putFeedback(GridCaptionPanel.this, rc, myFeedbackPainter, toolTip); } }