Questions tagged [jcalendar]

JCalendar is a Java Swing date chooser bean for selecting a date.

JCalendar is a Java Swing date chooser bean for graphically selecting a date. It adheres to the JavaBeans component model. The project's home page is here. Several enhancements and bug fixes have been collected here.

143 questions
1
vote
1 answer

Background color on specific dates using JCalendar

Im trying to set specific dates in my JCalendar in a different color depending on if there is something planned for that date in my database, the date is stored as"yyyy-MM-dd" in the database, I've seen similar posts here on stackOverflow but I just…
user10852128
1
vote
1 answer

jDateChooser - Never updates with selection

I'm trying to pull in a date so I can work with it in SQL. I put the jDateChooser on the screen and use it to define a string. Because it starts out with no value (null), it throws Null Pointer Exception. I initialize the JDateChooser with…
David S.
  • 45
  • 1
  • 10
1
vote
1 answer

Selecting a date on JCalendar to create a dialog box

I am working on a project that uses an interactive calendar. I intended for the user to click a date on the JCalendar, and if an event took place on that day then a pop-up would display, telling the user what event took place. If there was no event…
1
vote
1 answer

JCalendar get the current date clicked

So I have this @Override public void propertyChange(PropertyChangeEvent evt) { Date current = new Date(System.currentTimeMillis()); if (calendar.getDate().after(current) || (calendar.getDate().getDate() ==…
Guitargun
  • 77
  • 8
1
vote
0 answers

Jcalendar with DateEvaluator

Jcalendar 1.4 with DateEvaluator. Can i change Border or Font for one field (one day) somehow ? I need better to distinguish events in the calendar not only change Background and Text Color. Can i override something on IDateEvaluator? Deklaration: …
KozakSHR
  • 31
  • 4
1
vote
1 answer

I am trying to fetch data from database where date = jdatechooser:

I have a table with a column datetime i want to retrieve data from database where date is specified in jdatechooser but em continously getting error: Cannot make a static reference to the non-static method getDate() from the type…
Amna Doll
  • 19
  • 2
1
vote
1 answer

How to get selected item on Jcalendar

I load my jCalendar to Calendar then I used the day for the index but problem every month's days different so I can't select. When I click 21, I'm selecting 10. Calendar cal = Calendar.getInstance(); cal.setTime(jCalendar1.getDate()); int…
carbforce
  • 23
  • 1
  • 7
1
vote
2 answers

Insert JDateChoose into MySQL

I'm having a problem when I'm trying to Insert some Data into MySQL Database. I think it's caused because of the JDateChooser. This is the error that I'm getting: You have an error in your SQL syntax; check the manual that corresponds to your MySQL…
David Marí
  • 21
  • 1
  • 3
1
vote
0 answers

How to Change the language of my JDateChooser?

I would like to change the language of my JDateChooser to Chinese. I have tried this method: //change jdatelanguage Locale locale = new Locale("zh", "CN"); But it didn't work. Maybe I put it in the wrong place. Can someone please help? I also tried…
Percy Jack
  • 11
  • 3
1
vote
0 answers

Change the icon for the popup calendar in JDatePicker jar file

I have searched in many sites to add the icon of calendar in JDatePicker jar file. It shows ... instead of icon of Calendar. And also how to disable the before dates till today? Could anyone have idea to do this?
paudel.sulav
  • 162
  • 1
  • 12
1
vote
2 answers

How to Select jCalender date when I click Mouse on some Day

I use mouse click event. When I click to select specific date on it but nothing happened inside mouse click event. I use this code. I don't want to need use JDateChooser jCalendar.getDayChooser().addPropertyChangeListener("day", new…
NicoleZ
  • 1,485
  • 3
  • 22
  • 43
1
vote
3 answers

How to set custom week-start in JCalendar?

I am having trouble setting custom first-day-of-week, in JCalendar. The first-day-of-week does change if I change locale. However changing the first-day-of-week in the underlying calendar, has no effect. Here is a short demonstration code: public…
c0der
  • 18,467
  • 6
  • 33
  • 65
1
vote
3 answers

How to get month name in string on JMonthChooser from JCalendar

How to get month name in string on JMonthChooser from JCalendar (toedter.com/jcalendar/) and convert it to string "01", "02","03",...,"12" as simple as using SimpleDateFormat. I'll try : String mymonth; SimpleDateFormat sdfm = new…
repot
  • 83
  • 3
  • 9
1
vote
1 answer

Java add icon to JCalendar

I'm trying to add an icon to a specific day into a JCalendar, but I can't. How can I do that? I have this code: final JCalendar calendar = new JCalendar(); JDayChooser day= calendar.getDayChooser(); day.setAlwaysFireDayProperty(true); …
1
vote
2 answers

How to set JCalendar date in JDateChooser

I have a JDateChooser that is used for selecting birth dates. It starts out as null date value and let's the user choose the birth date either using the textfield or the jdatechooser button which opens the Jcalendar. What I'm trying to do is to set…
mfrancisp
  • 119
  • 1
  • 2
  • 12
1 2
3
9 10