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
9
votes
2 answers

Is it possible to detect a date change on a JCalendar JDateChooser field?

I'd like to detect when the date is changed in a JDateChooser field so that I can update another field. Is this possible? And if so where should I be starting? I've already looked at the documentation and unfortunately there are no methods for…
ghickman
  • 5,893
  • 9
  • 42
  • 51
6
votes
3 answers

How do we disable editing options on JDateChooser?

I am using a JDateChooser to allow the user to input date. How do I disable editing option on the text field that appears? I would not want the user to type anything in that text field - input should only be entered by clicking from the calendar.…
CN1002
  • 1,115
  • 3
  • 20
  • 40
6
votes
1 answer

Get the list of dates between two dates

I'm using JDateChooser and I'm making a program that output the list of dates between the selected dates. for example: date1= Jan 1, 2013 // Starting Date date2= Jan 16,2013 // End Date then it will output Jan 2, 2013... Jan 3, 2013.. Jan 4,…
Maguzu
  • 433
  • 3
  • 7
  • 14
5
votes
3 answers

Date Selection in Java

What is the best way for a user to select a future date in Java swing? Are there any good freely available libraries that I can do this with?
LOD121
  • 541
  • 5
  • 13
  • 33
5
votes
2 answers

Display JDateChooser in JOptionPane

I want to display a JDateChooser component inside an Option pane depending on some selection from the user. The point is that I tried getting the JDateChooser the way I want it to appear using next code: JOptionPane.showInputDialog(null, new…
Josué Almonasi
  • 143
  • 1
  • 14
4
votes
3 answers

Unwanted data using JDateChooser in JCalendar

I am using JDateChooser in JCalendar (with Swing). I am trying to get a format of "yyyy-MM-dd", but for some reason I get the time also and it's always the same(00:00:00 MDT). Anyone has an idea how to get rid of the time? Thanks in advance. try { …
Paul Kar.
  • 1,293
  • 2
  • 21
  • 32
3
votes
1 answer

How can i make only mondays selectable in Java's JCalendar?

I'm using the JCalendar datepicker and would like to know if there's a way to make only certain weekdays (e.g Monday) selectable via the JDateChooser component? Does anyone know how to do it?
3
votes
2 answers

Traverse JDateChooser with Enter Key

I would like to do some input validation when the ENTER key is pressed in a JDateChooser. I know that in JTextField elements it is possible to add an ActionListener whereby the ENTER key fires an action. However, when I add an ActionListener and…
David Yee
  • 3,515
  • 25
  • 45
3
votes
2 answers

Java set non-editable? JCalender

Is there a way to set a textfield in Java to non-editable? I don't mean not enabled as I want the user to be able to insert values by using JCalender but not to be able to enter values manually?
user3211740
  • 175
  • 3
  • 6
  • 12
3
votes
2 answers

Why is firePropertyChange(String propertyName, Object oldValue, Object newValue) protected and not public?

Well the thing is I'm working on a IDateEditor interface implementation from JCalendar library and I've noticed that Component.firePropertyChange(String propertyName, Object oldValue, Object newValue) method is not public but protected. The…
dic19
  • 17,821
  • 6
  • 40
  • 69
3
votes
5 answers

Get jDateChooser date to jLabel

This is my infernal problem. nowadays i'm trying to create my project according to my Degree. I already have added jcalender to my project in netbeans, and i already added jDateChooser to my jFrame. my problem is, when i chooseing a date from…
3
votes
2 answers

Adding actionListener to jCalendar

How would I add an actionListener to the jDayChooser component of an existing jCalendar placed using netbeans? I would like to only trigger an event only when the day buttons are clicked. as the propertyChange in jCalendar listens to even the…
JLawrence
  • 192
  • 5
  • 22
3
votes
1 answer

JComponent painting issue

I'm trying to create a custom Calendar in Java. For this I extend javax.swing.JComponent. public class GMCalendar extends JComponent { ... } In my constructor I do some basic setup and load my image: calendarDay =…
Fabio Poloni
  • 8,219
  • 5
  • 44
  • 74
3
votes
3 answers

Adding component to palette on NetBeans IDE

I am looking at the NetBeans Platform using NetBeans IDE to create a Swing UI application. I am trying to get a jCalendar component into the palette and onto my window. The problem is that if I attempt to drag it onto the form I get an error saying…
Blueberry
  • 2,211
  • 3
  • 19
  • 33
2
votes
5 answers

Can not retrieve date from JDateChooser in Java

I am using JDateChooser from here However I can not retrieve the date in format set with the method setDateFormatString while displaying it in console. In first label shows actual date retrieved from JDateChooser while second label shows the…
iOSAppDev
  • 2,755
  • 4
  • 39
  • 77
1
2 3
9 10