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

JXDatePicker questions (part 2)

I want to ask some questions about jxdatepicker: (1) I write the following code to change the date format: public test(){ SimpleDateFormat dateFormat = new SimpleDateFormat("YYYY-MM-dd"); jxDatePicker1.setFormats(dateFormat); } When I run…
Michael Kuan
  • 1,085
  • 3
  • 10
  • 28
1
vote
1 answer

JDateChooser display language

I'am using JCalendar's 1.4 JDateChooser so I ask if it is possible to change display names for months and days of weeks without having to change the source code, or, since I never looked the source code, is it complicated to change it even if it…
1
vote
2 answers

JCalendar and PropertyChangeListener: event is not fired for current day

I'm using JCalendar and have setup a listener using a PropertyChangeListener. My problem is that this listener will not respond to an event on the current day, I assume because there is no change in the property. I want it to be able to respond to…
user3932611
1
vote
2 answers

How to set date picker initial value?

I have a date_picker from toedter.com from jcalendar package which are swing components. How can I set an initial value to it? I'm using netbeans. I added the date_picker on design view and tried this on my source code : UtilDateModel model = new…
impulse
  • 206
  • 2
  • 15
1
vote
2 answers

Disable multiple date ranges jDateChooser

I want to disable multiple date ranges on a JCalendar. I'm following these steps, but I need to know how can I add multiple date evaluators. Help me please, thanks. Update: I don't know why I can't disable the dates on my JCalendar. I will leave my…
Carlos Arce
  • 13
  • 1
  • 5
1
vote
0 answers

How to detect change of date in JDateChooser/JCalendar

I am using JDateChooser with JCalendar in application. User should choose the date in date chooser and date should be updated in JTextFieldDateEditor. However, I can't seem to get the PropertyChangeListener to work. I have checked it on…
1
vote
1 answer

Jcalender date format not matching MYSQL

I am making a Application Using Java. to pick the date i am using JCalender.jar file , and saving it in MYSQL . their date format does not match MYSQL date format . how can i change it
1
vote
2 answers

How set JCalendar with a specific date?

I want to use two JCalendar, one receive actual date with Calendar.getInstance() and other with the same date but with one month over the first. for example: Jcalendar1 = 05/04/2014 Jcalendar2 = 05/05/2014 I dindn't get how make this, I tryed whit…
1
vote
1 answer

How to set "off" all the toogle day buttons in jCalendar?

I'm using the toedter's jCalendar and triggering events when the day buttons are clicked using the following code: JDayChooser jdc = jCalendar.getDayChooser(); jdc.addPropertyChangeListener("day", new PropertyChangeListener() { …
jdias
  • 45
  • 6
1
vote
1 answer

JCalendar multiple day selection

Is it possible to select multiple days in toedter's JCalendar? Like I would be able to highlight 2 or 3 days in the calendar and then get the days highlighted after I would trigger an event using a button. or should i be better off using a JTable…
JLawrence
  • 192
  • 5
  • 22
1
vote
3 answers

Add specific background colors to JDaychooser Dates

I've developed a Java Swing application.. How can I set the background color of specific JDayChooser dates? Thanks
Chinthaka Dinadasa
  • 3,332
  • 2
  • 28
  • 33
1
vote
3 answers

convert string into date format in java

I want to convert this string to the following date format. String s = "2-26-2013"; Date date = new SimpleDateFormat("EEEE, MMMM/dd/yyyy").parse(s); System.out.println(date); I'm getting this error: Exception in thread "main"…
Muhsina M
  • 21
  • 2
  • 8
1
vote
1 answer

JTable Column not editable after custom renderer

This is a follow up to the question posted here. I've followed the instructions in the answer, and it worked like a charm. However, the date column cannot be edited: I cannot select any JDateChooser within the populated table. As mentioned in the…
Shalin
  • 105
  • 2
  • 14
1
vote
1 answer

Change color of specific days in JCalendar

I need to change the color of selected days in a JCalendar application. The problem is: I took a look at the source code of JCalendar, and I didn't see any way to change the color. Lemme see if I can be more clear here... JCalendar has Special…
Gabriel Câmara
  • 1,249
  • 15
  • 22
1
vote
2 answers

JCalendar value not populating properly

String date =rs.getString(10); ((JTextField)fieldClose.getDateEditor().getUiComponent()).setText(date); The above is used to extract the DATE value from database to set it textfield. When the date was inserted initially, it was of…
Hoody
  • 2,942
  • 5
  • 28
  • 32