/* (non-Javadoc) * @see org.jdesktop.swingx.decorator.HighlightPredicate#isHighlighted(java.awt.Component, org.jdesktop.swingx.decorator.ComponentAdapter) */ public boolean isHighlighted(Component renderer, ComponentAdapter adapter) { if (QueueModel.isStopped()) { return false; } Item item = model.getItemAt(adapter.row); if (item instanceof File && QueueModel.getPlayingFile() != null) { File file = (File) item; if (file.equals(QueueModel.getPlayingFile())) { return true; } } else if (item instanceof Track) { List<File> files = ((Track) item).getFiles(); if (files.contains(QueueModel.getPlayingFile())) { return true; } } return false; }