title: Using JCalendar in a JDialog
body: <p>My program uses <code>JDialog</code>s to open up forms and in the form I want to use <code>JCalendar</code> for the user to select a date and for me to use it for other methods afterwards.</p>
  
  <p>I have downloaded <code>JCalendar</code> library. I read some example codes but still not sure how to do it. I have an idea that in the form you press a button (Select Date) and like a small window opens with that <code>JCalendar</code> and when the date is selected it is displayed in the form as a TextField.</p>
  
  <p>Can someone recommend me some method of doing this with the least trouble?</p>