why is the ListCellRendererComponent called twice for every list item
posted 15 years ago
Hi, Does anybody know why please. I hjave been breaking my head on this the past couple of weeks and it is still beyond me. Please let me know the answer even if you even have the faintest clue. Thanks Sangeetha
posted 12 years ago
From the JavaDoc of getListCellRendererComponent
If it is necessary to compute the dimensions of a list because the list cells do not have a fixed size, this method is called to generate a component on which getPreferredSize can be invoked.