Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5345

Re: What is wrong with JScrollBar.setValue(...)????

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.gui
Subject Re: What is wrong with JScrollBar.setValue(...)????
Date 2013-05-20 06:49 -0400
Organization The Wasteland
Message-ID <nospam-3781CB.06494720052013@news.aioe.org> (permalink)
References <54774824.0302171202.7248c555@posting.google.com> <6fca945b-bd9b-4387-8bce-ecebb78aa3a4@googlegroups.com>

Show all headers | View raw


In article <6fca945b-bd9b-4387-8bce-ecebb78aa3a4@googlegroups.com>,
 darko.chen@gmail.com wrote:

> Corrineâó 2003îN2åé18ì™êØä™ìÒUTC+8è“åþ4éû02ï57ïbõçì¼ÅF
> > JScrollBar.setValue() occasionally but predictably (always in the 
> > same circumstances, and in the same way) sets the value wrong. I 
> > have checked, and the correct value is being passed to setValue(). 
> > Why in the world is this happening, and how can I fix this?
> > 
> > In case it adds clarity to the problem, this is happening during a 
> > zoom-in operation. In contrast, the zoom-out operation, which is 
> > exactly analogous to the zoom-in operation, does 
> > JScrollBar.setValue() correctly.
> >  
> I have the same problem, but still I can't find the solution!

It's hard to say without a short example that reproduces the problem, 
but the word _occasionally_ always make me think about possible 
violations of the event dispatch thread.

<http://docs.oracle.com/javase/tutorial/uiswing/concurrency/initial.html>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: What is wrong with JScrollBar.setValue(...)???? darko.chen@gmail.com - 2013-05-19 19:50 -0700
  Re: What is wrong with JScrollBar.setValue(...)???? "John B. Matthews" <nospam@nospam.invalid> - 2013-05-20 06:49 -0400
  Re: What is wrong with JScrollBar.setValue(...)???? Roedy Green <see_website@mindprod.com.invalid> - 2013-05-29 00:16 -0700

csiph-web