• Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing parameters  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the pop-up calendar written by Jane Griscti (retired Java Rancher). It works great when I am adding new records, but I want to pass it a date from an existing record when doing updates. How do I do that? The code can be found here:

http://www.janeg.ca/projects/calendar/CalendarComboBox.java.html
 
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It appears that you can create a new Calendar object, initialized to the date of your choice, and pass this Calendar object into the CalendarComboBox constructor. The CalendarComboBox should then operate according to the date you supplied. By default, the class uses the current date/time.
 
Bob Voltz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a real newbie at Java. Would you mind posting some code samples to illustrate your response? TIA!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!