Java Reference
In-Depth Information
Figure 19.16
Select a target method to be invoked on the JSlider bean.
Figure 19.17 shows the list of get methods from the Customer bean that are
compatible with the setValue() method of the JSlider class. (These are the
methods of Customer that return an int.) Select getAccountNumber() because
it is the property we want to bind to value, and click the Finish button to end
the wizard. A bluish line now appears between the Customer bean and the
JSlider bean to denote that a relationship exists between the two beans.
To verify that your properties are bound successfully, click the Customer
bean and enter a value for the accountNumber property (between 1 and 100).
Figure 19.18 shows the accountNumber set to 75.
Figure 19.17
Select the method in Customer that sets the value property of the JSlider.
Figure 19.18
Change the value of the accountNumber property of the Customer bean.
Search WWH ::




Custom Search