previous
|
start
|
next
Composing Beans
Make new frame
Add car bean, slider to frame
Edit
stateChanged
event of slider
Add handler code
carBean1.setX(jSlider1.getValue());
Compile and run
Move slider: the car moves
previous
|
start
|
next