Insubstantial / insubstantial

Swing look-and-feel library and assorted widgets
193 stars 57 forks source link

JTable hover problems #24

Closed PirolA closed 12 years ago

PirolA commented 13 years ago

Hi shemnon,

if the mouse is moved over the table, the current row is highlighted. At the first glance everything is ok.

I have added logging to the method JTable#paintComponent(Graphics), so that I can see how often the table is redrawn and the corresponding renderers (i have expensive renderers ;( ) are called.

Every time I change to another row, the table is redrawn about 15 times, no matter how many data is in the table.

If I do not use Substance and self-programming the highlight of table rows, the table only drawn once, as expected. I think this is a bug, I'd be very grateful if you could deal with it.

I can provide two test classes to identify what the problem is.

Greetings and best compliment to the great work, Pirol

I am using Substance 6.0 !

PirolA commented 13 years ago

Addition: If you hover over the table. for 5 seconds the CPU increase to 100% ;(

shemnon commented 12 years ago

Can this be reproduced on Substance 6.2, 6.3, or 7.0? There have been some changes in the table code, so it may right itself. Re-open this if you still get this in a more recent release.

PirolA commented 12 years ago

Now I am using version 7.0, but the problem still occurs.

Best wishes pirol