I'm developing an application where i required to set time flag,. One start time flag and one stop time flag. As i'm a new boy i have no idea how to do it. so please help me in solving this. I want to have a JProgressBar or something like that where i can calculate my media time and put two flags so that i can get a time duration so i can further operate on that basic. Thanks in Advance.