-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Description
When a user select a date in a DatePicker, the commit event who is fired only to itself.
I think it must call all registered commit listeners from DatePicker.
For example:
This code is supposed to show I have been changed in the console when you select a date, but it doesn't.
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setBounds(100, 100, 450, 300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
DatePicker myDP = new DatePicker();
frame.getContentPane().add(myDP);
myDP.addCommitListener(new CommitListener() {
@Override
public void commit(CommitEvent event) {
System.out.println("I have been changed!");
}
});
frame.setVisible(true);
}
Reactions are currently unavailable