Article View: borland.public.jbuilder.java.swing
Article #11440Re: scrollbar event
From: Paul Furbacher
Date: Mon, 31 May 1999 00:00
Date: Mon, 31 May 1999 00:00
26 lines
1332 bytes
1332 bytes
Stephan Grimm wrote: > > How can I recognize the occurance of the following event (using > JScrollBar) ? : > > "The user clicked an arrow-button of the scrollbar but no scrolling > could be done because the extremum position in this direction has alread > been reached." > > There is no ValueChanged-event fired in this case. Have I to use the > Arrow-Buttons themselves as components ? (How to receive them?) The way I would do it is to get the scrollbar in question, and attach an adjustment listener to it. So, for a grid control, it would go something like this (from memory here, so it may be a little off): // given GridControl gc JScrollBar sb = gc.getVerticalScrollBar(); sb.addAdjustmentListener(new ....); Paul Furbacher
Technical Details
Message-ID:
<37534ED4.B8AAB71D@bilbo.bio.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<375237C3.B60DE867@mgm-edv.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,cb6158fc3323cd50 X-Google-Attributes: gid111d45,public From: Paul Furbacher <pf@bilbo.bio.purdue.edu> Subject: Re: scrollbar event Date: 1999/05/31 Message-ID: <37534ED4.B8AAB71D@bilbo.bio.purdue.edu> X-Deja-AN: 484309381 Content-Transfer-Encoding: 7bit References: <375237C3.B60DE867@mgm-edv.de> Content-Type: text/plain; charset=us-ascii Organization: Reverse Alchemy, Inc. Mime-Version: 1.0 Reply-To: pf@bilbo.bio.purdue.edu Newsgroups: borland.public.jbuilder.java.swing