Slider issue

so i want to get the value of the slider. The default value is 8 and if i move the slider to 12, i get the value of 0000012. What can i do for it to display correctly? And one more thing - i accidentally turned off the the category in the palette where all the parameters and events are held and i can't seem to find how to turn it back on again. Thanks for your help.

The code for the slider is:

privatevoid jSlider1StateChanged(javax.swing.event.ChangeEvent evt){

if (!jSlider1.getValueIsAdjusting()){

d=jSlider1.getValue();

}

}

[781 byte] By [donkapona] at [2007-11-27 1:55:05]
# 1

now i see that all these are different values, so i get the final value 12 which is good. but there's another issue. i'm generating a two dimensional array of the size of that value, and if i assign the value by hand in the code to that variable, everything is ok, but if i assign it to the jSlider1 value, then it says that the array is out of bounds. Any ideas what's wrong?

donkapona at 2007-7-12 1:27:37 > top of Java-index,Java Essentials,Java Programming...
# 2
the same problem exists if i replace the slider with a text field.
donkapona at 2007-7-12 1:27:37 > top of Java-index,Java Essentials,Java Programming...