java - How to make a model changes visible on a JDatePicker? -


after doing

date date = new date(); jdatepicker.getmodel().setvalue(date); 

i'd jdatepicker display new value in ui. tried

jdatepicker.repaint(); 

which doesn't have effect.

i'm using jdatepicker 2.0.0-snapshot.

jdatepicker.getmodel().setvalue(date) works fine , correctly updates gui (i looking on wrong component). jdatepicker.repaint() isn't necessary.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -