Hi. I've got a JSlider in my applet which I want to change the position of.
int initValue = 10;
int minimum = 10;
int maximum = 20;
JSlider slider = new JSlider(JSlider.HORIZONTAL, minimum, maximum, initValue);
I've got this in the applets init() method.
add(slider); //add the slider to the panel
I've tried using:
slider.setLocation(400, 40);
That doesn't seem to work. I've tried googling around. Can't find anything :S.
Thanks