Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JTable flickering on update ...

206 views
Skip to first unread message

Ash

unread,
Dec 15, 2000, 3:01:49 AM12/15/00
to
Hi,

I have a JTable which is updating all (or some) rows approx. every second.
The table uses a custom renderer for changing row background and foreground
colors etc. The problem I have is that every time the table is repainted
with new information, the image flickers, making it impossible to select a
specific row (not to mention looking pretty messy). I have set the
RepaintManager.setDoubleBufferingEnabled() to true, however this makes
little or no difference. Maybe the components are getting buffered, but
aren't getting painted synchronously (?). Has anyone got any suggestions as
to solving this problem ??

Thanks,
Ash


Ash

unread,
Dec 15, 2000, 4:27:17 AM12/15/00
to
Problem seems to have been solved by the type of TableEvent passed to the
tableChanged method in JTable. It was using TableModelEvent.INSERT instead
of TableModelEvent.UPDATE. Can someone plse explain to me what exactly
happens behind the scenes in JTable when either of these variables is used.

Ash <as...@fairex.com> wrote in message news:3a39...@news.starhub.net.sg...

0 new messages