🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: refreshing tabledata when scrollbars are moved corrupts the display

#1063
From: John McGrath [TeamB]
Date: Sun, 02 May 2004 06:28
29 lines
2134 bytes
On 4/30/2004 at 11:18:31 AM, Zoran Pjevic wrote:

> Is there a way to mutullay exlude the refreshing of the data 
> when the scrollbars are dragged? 

There is no simple property in JScrollPane you can set that will do this.
I imagine that it would be rather disconcerting for the user to move the
scroll bars and have nothing scroll, which is probably why nobody has
implemented something like this.

If you want to try to implement this, I think this would be the right
approach:  Look at the source code for the JScrollPane class and the
ScrollPaneUI classes to see how they handle events from the scroll bars.
Hopefully, you can override one of the methods and filter out the
adjustment events that return true for getValueIsAdjusting().

Ideally, you will be able to do this in the JScrollPane class itself.  
If you need to mess with the UI delegate, it will be much more difficult.
In that case, you will need to deal with the installation of the delegate,
look-and-feel changes, etc.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <4094951d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <lvq490p28esdf0fnhrooab5tcp2qb3nl9v@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,335e136567c4fb6f
X-Google-Attributes: gid111d45,public
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: refreshing tabledata when scrollbars are moved corrupts the display
Newsgroups: borland.public.jbuilder.java.swing
References: <lvq490p28esdf0fnhrooab5tcp2qb3nl9v@4ax.com>
User-Agent: XanaNews/1.16.2.2
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 141.158.60.114
Message-ID: <4094951d$1@newsgroups.borland.com>
Date: 1 May 2004 23:28:45 -0700
X-Trace: newsgroups.borland.com 1083479325 141.158.60.114 (1 May 2004 23:28:45 -0700)
Lines: 29
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail