how to clear JDateChooser field? [closed]
问题 I am using a JDateChooser as a component in a JForm. I have setup a JButton, which resets all of the fields on this form to blank. I do not have issues with the actionListener, or the method for clearing, but instead am unsure how to clear the JDateChooser component. More specifically I am wondering how to clear the Date from the JTextField component of the date chooser, such that it is blank. Furthermore, I would like to set this field to the current date after it is cleared. 回答1: If you