Click here to Skip to main content
15,906,708 members
Home / Discussions / Java
   

Java

 
QuestionScroll bars for table? Pin
pancakeleh21-Dec-10 15:07
pancakeleh21-Dec-10 15:07 
AnswerRe: Scroll bars for table? Pin
RaviRanjanKr21-Dec-10 18:19
professionalRaviRanjanKr21-Dec-10 18:19 
QuestionOSGI, Spring Source Oh my! Pin
Drozzy21-Dec-10 13:04
Drozzy21-Dec-10 13:04 
AnswerRe: OSGI, Spring Source Oh my! Pin
TorstenH.21-Dec-10 19:56
TorstenH.21-Dec-10 19:56 
Questionneed help in task scheduling in java? [modified] Pin
Alok Sharma ji20-Dec-10 22:56
Alok Sharma ji20-Dec-10 22:56 
AnswerRe: need help in task scheduling in java? Pin
TorstenH.21-Dec-10 1:48
TorstenH.21-Dec-10 1:48 
GeneralRe: need help in task scheduling in java? Pin
Alok Sharma ji22-Dec-10 1:24
Alok Sharma ji22-Dec-10 1:24 
GeneralRe: need help in task scheduling in java? Pin
TorstenH.22-Dec-10 4:21
TorstenH.22-Dec-10 4:21 
Big Grin | :-D so this was supposed to be a question?

I would simply use java.util.calendar and compare that one to the actual date, which is given by creating a new, argument free Instance of the calendar object. Setting a timer would be easy as I can add or subtract time in a quit simple way.

Certainly the input of the user needs to be validated, as there is a certain range of valid time inputs. I would leave that one to my custom calendar object.

As there is no real DateChooser component or dialog I would certainly go with this one: clickedy.
If the date is set as a simple textfield, I would definitely give the user a hint of how to set the date, as there are different forms used depending on which localization the user has.
And I would validate the date, which is a bit tricky, because some month do have 30, other do have 31 days and some do have a changing number of days depending on whether it is a leap-year or not.
It would be cool to handle this with try/catch and a custom "DateFormException".

Also would it be cool to have a scaling GUI with a growing window when the number of timers exceeds the given space in the GUI. Of course would the window just rise to a certain size, as a monitor just has a certain size (variating too!).

If the window is minimized, i would push it to the tasks aside the clock. Of course would I prevent the app to be closed before all times have finished.
And I would play a sound and push a popup when a timer finishes.

And when I finish my homework I would be proud as hell to have done it all by myself Wink | ;)


regards,
Torsten
I never finish anyth...

QuestionHelp in adding new data to databse Pin
pancakeleh15-Dec-10 16:36
pancakeleh15-Dec-10 16:36 
AnswerRe: Help in adding new data to databse Pin
RaviRanjanKr15-Dec-10 17:24
professionalRaviRanjanKr15-Dec-10 17:24 
GeneralRe: Help in adding new data to databse [modified] Pin
pancakeleh15-Dec-10 19:42
pancakeleh15-Dec-10 19:42 
GeneralRe: Help in adding new data to databse Pin
David Skelly15-Dec-10 22:27
David Skelly15-Dec-10 22:27 
GeneralRe: Help in adding new data to databse Pin
pancakeleh16-Dec-10 14:25
pancakeleh16-Dec-10 14:25 
AnswerRe: Help in adding new data to databse Pin
RaviRanjanKr21-Dec-10 0:45
professionalRaviRanjanKr21-Dec-10 0:45 
GeneralRe: Help in adding new data to databse Pin
pancakeleh21-Dec-10 15:05
pancakeleh21-Dec-10 15:05 
GeneralRe: Help in adding new data to databse Pin
TorstenH.21-Dec-10 1:54
TorstenH.21-Dec-10 1:54 
GeneralRe: Help in adding new data to databse Pin
pancakeleh22-Dec-10 17:33
pancakeleh22-Dec-10 17:33 
QuestionHelp in editing and delete datas Pin
pancakeleh14-Dec-10 20:43
pancakeleh14-Dec-10 20:43 
AnswerRe: Help in editing and delete datas Pin
TorstenH.14-Dec-10 21:10
TorstenH.14-Dec-10 21:10 
Questionreading web page Pin
asha_s14-Dec-10 2:43
asha_s14-Dec-10 2:43 
AnswerRe: reading web page [modified] Pin
TorstenH.14-Dec-10 19:32
TorstenH.14-Dec-10 19:32 
GeneralRe: reading web page Pin
asha_s14-Dec-10 20:05
asha_s14-Dec-10 20:05 
GeneralRe: reading web page Pin
TorstenH.14-Dec-10 20:34
TorstenH.14-Dec-10 20:34 
GeneralRe: reading web page Pin
asha_s15-Dec-10 6:09
asha_s15-Dec-10 6:09 
GeneralRe: reading web page Pin
TorstenH.15-Dec-10 20:54
TorstenH.15-Dec-10 20:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.