Rounded JSlider.

2001-10-31 Thread Perico Perez
Hello, I need to build something similar to a JSlider but rounded (to represent a wheel that drives a car). Anybody have some idea about how can I do that? (some orientation would be greatly appreciated). Thanks a lot Hello, I need to build something similar to a JSlider but rounded (to

Re: Rounded JSlider.

2001-10-31 Thread KC_Eilander
Here's how I would do it. Its by no means the only way, so if anybody has something to add/subtract from this, feel free. Anyway, I wouldn't mess with the JSlider. Instead, the way I would do it is something like this: public class SteeringWheel extends JPanel { AffineTransform

How to force valueChanged event for JList selection?

2001-10-31 Thread kynn
I have a JList whose contents change dynamically. Selecting an item in the list causes some detailed information pertaining to the selected item to be displayed elsewhere (lets call it DetailArea) in the GUI. This accomplished via a ListSelectionListener. If no item is selected in the