hello, erveryone!
this is my first post here. my english grammar is not that well but i like to think that someone will understand what
i am trying to say. there is never a universal translator around when you need one. anyway here is my problem.
i am having a problem with the design of a class that is extending a jpanel component. in it i have a jspinner
and a jbutton object to right of the former component. the purpose of the class is to let the user type in the length of
a movie. the class in question is part of a movie db app. when the user clicks the jbutton a joptionpane showinputdialog
is displaying a dialog with a jcombobox that handles the selection of options asking how the user wishes the app to display
the runtime of the movie either as in the format of number of minutes, hours + mintes or minutes + hours + seconds. this
may sound a bit # unnecessarily complicated to someone else but i have never seen this option in another movie db app.
i have tried this using the jspinner's data models like the spinnernumbermodel, spinnerdatemodel classes and the
jspinner's editor classes like the DateEditor and NumberEditor. its rather easy to work with the date and calendar classes
when you have to display the current time, manipulate time using the set method in the Calendar class. but i am facing a
lot of trouble when i need to increment the time displayed in a jspinner when its set to 0 hours and 0 minutes as the default
value.
all in all i want to increment the minute value untill it displays 59 seconds and when this reaches 60 i want the hour value
to follow in a manner similar as when you are setting a clock on your living room wall or a rolex for that matter.
maybe i am having to much demands on my own behalf in achieving this time setting design. it can emagine that it would
easier done having three textfield placed next to each other in which the user would fill out the current length of the movie.
my programming knowledges are somewhat limited so i could use a lot of tips on other solutions to my problem. i will post
some code later so far i mostly need some tips to other solutions, or feedback, or links to similiar time manipulating
problems that i have involving spinners and setting the length of a movie or something. anyway i hope i am not totally
out there in the blue.