I have a jScrollbar and when I scroll it (it has values from 0 to 100) I want to display the value in a textfield. This is how to get the value from the jScrollBar
AdjustmentListener adjListener;
adjListener = new AdjustmentListener() {
public void adjustmentValueChanged(AdjustmentEvent evt) {
System.out.println(evt.getValue());
}
};
But i cannot put it in the input as i get cannot make static reference to non-static
error.
Any help will be appreciated!
You have the choice between using variables in scope or class attributes.