This section illustrates you how to create a spinner in SWT.
In SWT, the class Spinner of package org.eclipse.swt.widgets is used. The method setMinimum() sets the minimum value and the method setMaximum() sets the maximum value. The method setSize() of class Spinner sets the size of spinner. The method setIncrement() the value and the method setPageIncrement() sets the page increment.
Here is the code of SpinnerExample.java
Output will be displayed as
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: October 3, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles