Using Slider to rotate Object In java
I have made a GUI that uses a slider to scale an object up and down.(in this case a rectangle). I was wondering if there was a way to also use a slider to specify a degree of rotation. So there would be 2 sliders one to control scale and another to control the rotation. If anyone could help me make this that would be great here is what I have so far with just the scale slider. import javax.swing.*; public class Parker { public static void main(String[] args) { TheWindow w = new TheWindow(); w.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //X wont close the window with out this line w.setSize