I want to disable or hide or make the past dates in JDateChooser not selectable. How can I make this? I've tried to use .setSelectableDateRange
but it doesn't work. I also tried .setMinSelectableDate()
but still no luck. I don't know but netbeans doesn't seem to know those because those doesn't show up in code suggestions. I'm using it like this:
public void dateset() {
jDateChooser1.getCalendar(). //What to put here? It doesn't have .setSelectableRange
}
I only tried the one that I've found on this one: How to show only date after the date of today in JCalendar
I think that post was already outdated. Please help.