for (int i = 0; i < n; i++)
{
if (i < parent.getTopIndex()) continue;
int k = i - parent.getTopIndex();
if (listarea[1] + 12 + k * 12 > listarea[3]) break;
PlaylistItem pli = parent.getPlaylist().getItemAt(i);
String name = pli.getFormattedName();
if (pli.isSelected())
{
g.setColor(selectedBackgroundColor);
g.fillRect(listarea[0] + 4, listarea[1] + 12 - 10 + k * 12, listarea[2] - listarea[0] - 4, 14);
}
if (i == currentSelection) g.setColor(currentColor);