while i click date i want to get that date.
i have used this method but i can't to get data is clicked

i used JCalendar

public Employee() {
        super("", true, true, true, true);
        setSize(50, 50);
        initComponents();
    
 jdcDateBirth.addMouseListener(new MouseListener(){
             public void actionPerformed(ActionEvent e){
                 System.out.println("is birth " + jdcDateBirth.getDate() );

             }

            public void mouseClicked(MouseEvent e) {
                 System.out.println("is birth " + jdcDateBirth.getDate() );
            }

            public void mousePressed(MouseEvent e) {
                 System.out.println("is birth " + jdcDateBirth.getDate() );
            }

            public void mouseReleased(MouseEvent e) {
                 System.out.println("is birth " + jdcDateBirth.getDate() );
            }

            public void mouseEntered(MouseEvent e) {
                 System.out.println("is birth " + jdcDateBirth.getDate() );
            }

            public void mouseExited(MouseEvent e) {
                 System.out.println("is birth " + jdcDateBirth.getDate() );

            }
         });

}

thanks

actionPerformed is what you need. If you not getting date it will be down to the fact that you have somewhere a problem. However without any additional code we will not be able to help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.