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
import org.eclipse.swt.SWT;
|
Output will be displayed as

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: SWT Spinner
Post your Comment