Added JSpinner class for handling number input fields.