Is there a way to set Max date in Java for the calendar control or restrict the user from selecting the future dates?

GregorianCalendar

GregorianlCalendar is a class, but it is not a control and has no user interface. So what is the "control" that you want to "restrict the user" in?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.