Search code examples
javadatejdatechooser

I need to set the curent date to jdatechooser this code is not working


I need to set the current date to jdatechooser this code is Not working

Date date = new Date ();
Jdatechooser.setDate(date);

Solution

  • You need a datechooser object.

    Date date = new Date ();
    JDateChooser dateChooser = new JDateChooser();
    dateChooser.setDate(date);