void (Graphics g) { Point point = UIUtil.getLocationOnScreen(this); if (point != null) { Rectangle bounds = getBounds(); myScreenBounds = new Rectangle(point.x, point.y, bounds.width, bounds.height); } FontMetrics metrics = g.getFontMetrics(); int baseLine = SimpleColoredComponent.getTextBaseLine(metrics, metrics.getHeight()); myRowIndexControl.setBaseLine( baseLine + ArrangementConstants.VERTICAL_GAP + myDelegate.getUiComponent().getBounds().y - myRowIndexControl.getBounds().y ); super.paintComponent(g); }