• Post Reply Bookmark Topic Watch Topic
  • New Topic

user selects how timer format is on java beans

 
Jean Stu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im working on a java bean, on a stopwatch


how would i code the get and set method for format, so in property tab a user can choose if they want the timer shown in seconds, or minutes or hours or seconds&minutes

 
Campbell Ritchie
Marshal
Posts: 52519
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to think about different formats, and how they work. I think an enumerated type of formats would be a good idea.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!