void (final Graphics g) { final Color fore = myUi.window.isActive() ? myActiveFg : myPassiveFg; setForeground(fore); super.paintComponent(_getGraphics((Graphics2D)g)); if (isFocusOwner()) { UIUtil.drawLabelDottedRectangle(this, g); } }