This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Calendar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Calendar" Watch "Calendar" New topic
Author

Calendar

Stacy Lee
Greenhorn

Joined: Jun 09, 2001
Posts: 12
if u know the answer, please tell me...^^
1 how to show the local clock on my window frame ?
2 how to set the local clock using java code... ?
Thanks
Stacy
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Well now, setting the clock on a Windows PC using the JVM and setting the clock using the JVM on the computer chip in your palmPilot would be slightly different don't you think?
Quite operating system specific.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Here's the only way I know to make the clock show up in the frame border... use a thread to update the label on the frame... hopefully this is what you wanted...



-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Stacy Lee
Greenhorn

Joined: Jun 09, 2001
Posts: 12
i really appriciate for ur answer...
it's really a big help..
javaranch is really good place to enhance programming skills...
thanks all!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calendar