0

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

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by peter_budo
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.