void () { final int row = FocusTracesDialog.this.myRequestsTable.getSelectedRow(); if (row != -1) { final FocusRequestInfo info = FocusTracesDialog.this.myRequests.get(row); if (prev != null && prev != info.component.get()) { prev.repaint(); } prev = info.component.get(); if (prev != null && prev.isDisplayable()) { final Graphics g = prev.getGraphics(); g.setColor(JBColor.RED); final Dimension sz = prev.getSize(); UIUtil.drawDottedRectangle(g, 1, 1, sz.width - 2, sz.height - 2); } } }