This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Brain Fog" Watch "Brain Fog" New topic

Brain Fog

Jackie Davis

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.

Jackie Davis

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

The correction was

a += calcValue;

(if anybody was interested)
I agree. Here's the link:
subject: Brain Fog
It's not a secret anymore!