Commit Listener
Brought to you by:
michaelbaranov
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:
/**
* Launch the application.
*/
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);
}
This code is supposed to show I have been changed in the console when you select a date, but it doesn't.
Issue is tracked under: https://github.com/tdbear/microba/issues/2