File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android 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
Exception in thread "AWT-EventQueue-0"
using a bean to put slider on panel
Have I got my inner classes and variable declarations in the right places?
slider in bean
Slot Machine