void () { if (paintAsSelected()) { myTitleLabel.setForeground(UIUtil.getTableSelectionForeground()); myTitleLabel.setBackground(UIUtil.getTableSelectionBackground(true)); } else { myTitleLabel.setForeground(UIUtil.getLabelForeground()); myTitleLabel.setBackground(myContent.getBackground()); } }