how to clear JDateChooser field? [closed]


If you want to clear the JDateChooser field:

JDateChooser dateChooser = new JDateChooser();

This code will set the field to null.

To set the date to today you can use for example:

dateChooser.setDate(new Date())

If dateChooser is your instanceof JDateChooser:

dateChooser.setDate(new Date());

Edit: I'm not sure what you meen by "set todays date". I assumed you meant set the date in the JDateChooser to todays date (that's what my code does). If it is not what you want, please clarify your question.


Using 9-ea+171, Maven 3.5.0 I am compiling a project with this module-info.java: module org.project { } But it fails with a mysterious error: [ERROR] Failed to parse module-info: [ERROR] With qdox:...

I have a problem, that maven is looking for resources inside of Eclipse installation folder. It is saying: This file was not found: file:/C:/eclipse/eclipse/src/main/resources/config/spring/...

In MATLAB I'm using a couple of java routines I've written to interface with a MyQSL database. One routine returns a boolean value result <1x1 java.lang.Boolean> >> result result = true ...

I need to fix my previous code. If the input is "aabbcdefgghijkllaa", the output needs to be "abcdefghijkla". My current code that I have changed outputs "alkjihgfedcba". (The input may not ...