// cell renderer (use defaultlistcellrenderer based on jlabel)
list.setCellRenderer(new OurListCellRenderer(new OurListCellRenderer.ListCellInfoProvider() {
@Override
public String getToolTip(Object value) {
// cast to TitleListEntry, we know it's one
LobbyListEntry entry = (LobbyListEntry) value;
return String.format("origin: %s, joined: %s", entry.ip, entry.joined);
}
}));
return list;