🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7522

Re: JTable scrolling related question

#7522
From: Torsten Welches
Date: Tue, 16 Jan 2001 08:57
21 lines
2109 bytes
John,

according to the documentation invokeLater will "be deferred
until all pending events have been processed" - this should
include paint events as well.

Well, this is why I consider it a hack - painting will first take place for the unscrolled table and after that once again to reflect the scrolling. The result will be a short flickering, I guess.

There must be an "off-screen" solution for this but I don't know 
how.

Torsten 

John McGrath  [TeamB] <ng-b@JPMcGrath.net> wrote:
>Did you try simply doing the scroll in an invokeLater()?  I thought 
>that might not work because of the event priorities.  Most events are 
>placed on the event queue with NORMAL priority, whereas PAINT events 
>are placed with LOW priority.  So I think that the invokeLater() call 
>may still be executed before the repaint event on the JTable, and I 
>think that is when the JTable gets expanded.
Technical Details
Message-ID: <3a640cf9_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!portc03.blue.aol.com!europa.netcrusader.net!204.127.161.3!wn3feed!worldnet.att.net!164.128.36.58!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!207.105.83.65
References: <3A1583E1.8FD78A76@netrisk.com> <3a15c300_2@dnews> <3a5c6686_2@dnews> <MPG.14c70100271fd34c989e6f@forums.borland.com> <3a62fa9f_1@dnews> <3a630ad3$1_2@dnews> <3a632376_1@dnews> <3a63648b_1@dnews> <MPG.14cda8bb63412d23989e99@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,1fc5e943f0feb2d4
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-16 01:02:06 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Subject: Re: JTable scrolling related question
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 193.158.55.74 193.158.55.74    
References: <3A1583E1.8FD78A76@netrisk.com> <3a15c300_2@dnews> <3a5c6686_2@dnews> <MPG.14c70100271fd34c989e6f@forums.borland.com> <3a62fa9f_1@dnews> <3a630ad3$1_2@dnews> <3a632376_1@dnews> <3a63648b_1@dnews>  <MPG.14cda8bb63412d23989e99@forums.borland.com> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3a640cf9_2@dnews>
Date: 16 Jan 2001 00:57:29 -0800
X-Trace: 16 Jan 2001 00:57:29 -0800, 207.105.83.65
Lines: 23
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!portc03.blue.aol.com!europa.netcrusader.net!204.127.161.3!wn3feed!worldnet.att.net!164.128.36.58!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!207.105.83.65