title: How to convert Java JSpinner number to int ?
body: <p>In Java, I've been trying to cast a JSpinner number input to an integer using Netbeans. I've made it so that the JSpinner input is a number, but I can't try to cast it to my own integer without receiving errors. I've tried many various things and one of the errors I most commonly receive is "Inconvertible types, required int, found JSpinner." How would I just simply be able to assign a JSpinner input (preferably a number) to an integer.</p>