Article View: borland.public.jbuilder.java.language
Article #16631Strange Scrollbars
From: John J. Straumann
Date: Thu, 04 Feb 1999 00:00
Date: Thu, 04 Feb 1999 00:00
43 lines
1831 bytes
1831 bytes
Hello all:
I have some scrollbars in a small applet, and my users are finding that
when running the applet in Netscape (4.0X and above), the bars seem to
take on an awareness and become alive. For example, I have methods set
up to handle the user clicking the increase, decrease arrows, and in the
body of the bar. If the user clicks an arrow, for some reason the arrow
stays depressed, and then anytime the user moves the mouse near the bar
it begins scrolling again.
This is very strange, does anyone have an ideas?
I set up the listeners like this: scrA = a scrollbar
scrA.addAdjustmentListener( new AdjustmentListener()
{
public void adjustmentValueChanged( AdjustmentEvent e )
{
scrPayment_adjustmentValueChanged( e );
}
}
);
This gives me a series of small methods for each scrollbar, instead of
one big method with a bunch of Ifs.
Please note that this only happens in Netscape, not IE...HOWEVER,
Java allows the code to define the visible slider size like this:
scrA.setVisibleAmount( 1 );
This works in Netscape, but in IE 4.X and above the sliders are all the
same size.
Any inputs are greatly appreciated.
John.
--
John J. Straumann strauman@home.com
http://members.home.net/strauman/
"The only failure is not trying..."
Technical Details
Message-ID:
<36B9C128.3A50474C@NoSpam.home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,734d3f5ca26db77e,start X-Google-Attributes: gidf74b3,public From: "John J. Straumann" <strauman@NoSpam.home.com> Subject: Strange Scrollbars Date: 1999/02/04 Message-ID: <36B9C128.3A50474C@NoSpam.home.com> X-Deja-AN: 440624064 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language