Two Laptop Bag*
The moose likes Beginning Java and the fly likes Brain Fog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Brain Fog" Watch "Brain Fog" New topic
Author

Brain Fog

Jackie Davis
Greenhorn

Joined: Mar 04, 2006
Posts: 23
Hi, I am having a bit of a problem with some simple java code. I'll just get on with showing you the code and explaining my problem.



Basically as I move the scrollbar(range: 1-10) I want to add the interval to the int a. The interval is calculated defined by 'calcValue'

My problem is that I want to assign 'calcValue' to a. As the scrollbar goes up this should contiually increase.

Hope I've explained this ok, if not please let me know and I will try and explain again.

Thanks
Jackie Davis
Greenhorn

Joined: Mar 04, 2006
Posts: 23
Sorted it now.

The correction was

a += calcValue;

(if anybody was interested)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Brain Fog