Welcome to the Ranch!
Please
UseTheForumNotEmail. I've removed your email address; this should also prevent spammers from retrieving it.
What part do you have trouble with? Getting the value from the JSpinner or its model? Or the drawing?
And
Swing is a proper noun; it's Swing, not swings.