1

i haved create this metod for add listeners in my dataChooser.

 public final void añadirEsccuhaDataChoser() {
    jDateChooser1.getDateEditor().addPropertyChangeListener((PropertyChangeEvent e) -> {
        if ("date".equals(e.getPropertyName())) {
            listarviajes1();
        }
    });
    this.add(jDateChooser1);
}

but the result who i have obtened after run the project is this.

datachooser moved

but the my original desing is this.

data chooser original position

the method i haved situate into the public vReservas().

situation method

What can I do to prevent the dataChooser from moving?

this is a solution. solution

  • Sorry to disturb, but i discovery the solution. I haved edited the internal code for my dataChooser and the problem has solve. in internal code i added the listener.nd the problem has solve. In internal code i added the listener. – Bruno Castro Nov 20 '17 at 14:28
  • You may want to write that as an answer to your own question. Provide the modified code that fixed it and explain what was wrong. This could help somebody else with a similar problem in the future. – dwilliss Nov 20 '17 at 14:41

1 Answers1

0

The problem is that I created a method, instead of adding the listener in the JdateChooser's internal code.

The code to add the listener is the same, just place it in the custom code option of the jDateChooser.

the ubication of listener