I use GUI and I want to add an event in my jSpinner if its value has been increased, i tried all events in the proprieties for example mouseClicked(MouseEvent) but no one of them works, How can i add this event?
private void Points1MouseClicked(java.awt.event.MouseEvent evt) {
//Points1 is a JSpinner
JOptionPane.showMessageDialog(null, "Thank you for rating this question.");
}
Also i want to control the jSpinner's values, it must start with 0 and increase to infirmity but never goes to negative numbers. how can i do this?