Trying to make the model update fire so that when I click on a button (out side of the JPanel containing the JSpinner
It will get the updated model.
I tried mouse listeners, focus listeners, key listeners and all their association methods. They all fire but still the model will not update. Only changing the text then
pressing ENTER will the modle update fire. Spin controls work like a champ.
Out of frustration I disabled manual text entry and forcing the user to spin the spinner or use the up and down arrow key to change the values which do fire the
events and update the model.
Any help would be appreciated.
Joined: Apr 23, 2010
I figured out the fix to updating the model.
call the spinner.commitEdit() method at the appropriate place. I found that the stateChanged method is not always called.
So where the event is called to get the information out of the spinner model I called it there right before getting the data.
Hope this helps someone.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com