This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Edit hour in clock  RSS feed

 
Jack Bolton
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am working on a clock java standalone program, that displays the hour.
What I want is that the user have the option to change/edit the hour in the clock,

I am using Date class from java.util.
How do I solve this?
[ April 21, 2007: Message edited by: Jack Bolton ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66188
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java,util.Date is not a display component, so it has no facilities for having a user edit it. If you are wanting to know how to adjust just the hours component of a date value, check out the java.util.Calendar class.

For Swing or Applet date components, please post in the corresponding forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!