Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

user selects how timer format is on java beans  RSS feed

 
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
Sheriff
Posts: 55292
156
  • 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!