aspose file tools*
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 Java 8 in Action this week in the Java 8 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
 
Similar Threads
using a bean to put slider on panel
Have I got my inner classes and variable declarations in the right places?
Exception in thread "AWT-EventQueue-0"
Slot Machine
slider in bean