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
2
votes
1 answer

Java highlighting specific dates in JCalendar cell

I followed the codes here to set the colors of a specific date in Toedter's Calendar. The problem I am facing now is that it is not highlighting the correct cell. In my example I have used 14th and 15th of June but it highlighted 8th and 9th. And…
Norman
  • 35
  • 1
  • 8
2
votes
1 answer

How to search between two dates in java with Sqlite database

I am using jCalender to input date String from_date = ((JTextField) txt_bilty_date_start.getDateEditor().getUiComponent()).getText(); String to_date = ((JTextField) txt_bilty_date_end.getDateEditor().getUiComponent()).getText(); String sql = " ";…
Pritesh
  • 23
  • 4
2
votes
1 answer

GUI Calendar DefaultTableModel Addig MouseListeners

So I followed a tutorial about how to create a GUI Calendar, but now I want to take it a step further. I would like to be able to click on the individual days in the calendar in order to prompt the user to add an event. But I don't know how to…
aurora91
  • 478
  • 1
  • 9
  • 25
2
votes
1 answer

Disable dates JDates Chooser

I'm newbie and I want to disable dates like shown in this example but in a JDateChooser button. Here is my code and hope you guys can help me. SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); RangeEvaluator evaluator = new…
Pablo
  • 25
  • 4
2
votes
1 answer

How to disable or highlight the dates in JCalendar

In my case i want to disable or highlight dates in Java calendar. I used JCalendar and DateChooserCombo and could not find a way to do it. Finally, I tried the below code and it also was not successful. For example: I want to disable all dates from…
koli
  • 194
  • 1
  • 6
  • 24
2
votes
1 answer

How to use JCalendar to select an element of my array?

I have a 3D array that contains 38 years, 12 months, and 31 entries for each month (regardless of how many days in that month). Like so: array[38][12][31]. I also have a JCalendar that is doing nothing now except looking pretty, and the JCalendar…
JmJ
  • 1,989
  • 3
  • 29
  • 51
2
votes
1 answer

How to add custom components to Eclipse swing palette?

I downloaded the Jcalendar API and added it to my projects library and build path as usual but now I would also like to add it to the swing palette for more convenience. I know it's possible with netbeans and I'm pretty sure you can do it with…
Pauli
  • 149
  • 4
  • 13
2
votes
1 answer

Date picking and finding difference

I am a novice to Java programming using Netbeans. I have added jCalendar to my GUI to pick a date. I have entered this line in Events -> "property change" code of jCalendar button, Date date=jcalendar1.getDate(); So that I get the date immediately…
1
vote
2 answers

JCalendar Focus Event

I use JCalendar's JDateChooser in a table date column as a tablecelleditor. The problem is that when the column cell clicked JDateChooser appears but if it loses its focus it does not fire focus lost event. How to make it fire focus lost event? And…
MOD
  • 1,070
  • 3
  • 19
  • 41
1
vote
1 answer

JCalendar sets to March 30 when February is chosen

Code consists of just month and year can be chosen in jcalendar, by default the day is 30 and 28 for February, the issue comes when I choose February, automatically jcalendar sets to March 30; this is the code; it is in PropertyChange event of…
1
vote
1 answer

JDateChooser : MouseClicked event doesn't get fired

I want to double click on a JDateChooser to make it enabled. So I use a MouseListener : jDateChooser1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { …
user777466
  • 991
  • 2
  • 13
  • 21
1
vote
1 answer

JCalendar problem (the month February)

I have a graphical component JCalendar for choosing the date. A problem (or bug) persists when my local date is June 30; for example, I go through the months with the arrow when I go through the month of February, the date is inserted automatically…
naj_ib
  • 151
  • 1
  • 1
  • 10
1
vote
0 answers

De-Highlight the dates in JCalendar using JComboBox

I am making a Java GUI with MySQL database for attendance recording. I have created a JFrame for adding new attendance. When user selects a subject name from the JComboBox the code verifies the subject name then gets the dates from the database and…
blackZer0
  • 11
  • 1
1
vote
1 answer

Java: JDateChooser shows wrong month

I'm doing super simple form in Eclipse and I'm using JDateChooser from jcalendar 1.4. I add the component in a Jframe, run the code, the date chooser seems to be correct but when I select a date, the component shows the name of the month instead of…
1
vote
6 answers

JCalendar getting date

In my project I am using com.toedter.calendar.JCalendar class. But I do not know how can I get date when date is chosen. JDateChooser and JXDatePicker met my need. There is a code that provides date when a date is chosen from…
olyanren
  • 1,448
  • 4
  • 24
  • 42
1
2
3
9 10