Questions tagged [jdatechooser]

JDateChooser is a sub-component of JCalendar, a Java date chooser bean for selecting a date.

JDateChooser is a bean composed of an IDateEditor (for direct date editing) and a button for opening a JCalendar for selecting the date. Source: JCalendar.

194 questions
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
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

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

Convert date format not working

hello guys I've been on this issue for 4 hours and I don't seem able to solve it. I want the date selected using JDateChooser to be converted to this format dd-mm-yyyy but I couldn't do this. This what I wrote but it prints the date as :Thu Aug 21…
Abdelaziz Dabebi
  • 1,624
  • 1
  • 16
  • 21
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

Why will JDateChooser not receive focus events

I am trying to add a FocusAdapter to a JDateChooser swing item, but the focusGained() method is not firing, neither through a tab focus or a mouse-click... public static void main(String[] args) { JPanel panel = new JPanel(new GridBagLayout()); …
ryvantage
  • 13,064
  • 15
  • 63
  • 112
1
vote
2 answers

Jdatechooser text alignement to RIGHT

I need to align the text in Jdatechooser text field. It always aligns the text(the selected date) to LEFT but i need at RIGHT side. I have tried this but its not working, StartJCal.setAlignmentX(RIGHT_ALIGNMENT); The setTextAlignment method is not…
user3164187
  • 1,382
  • 3
  • 19
  • 50
1
vote
3 answers

How to set focus on JDateChooser when frame is loaded in Swing?

How to show focus on date chooser when frame is loaded? how could verify textfield that user can enter only date format and way how could i set focus on jdatechooser icon in swing. code private void…
user2818060
  • 835
  • 5
  • 19
  • 41
1
vote
3 answers

Jdatechooser getDate() method is not working

I'm trying to get date from jDateChooser. So I used this update query. But now I'm getting this getDate() method as cannot find the symbol error. I'm using JDBC class. And following is my query: try { new JDBC().putData("UPDATE work SET…
Dilini
  • 69
  • 4
  • 10
1
vote
1 answer

Retrieving data from database using JDateChooser?

I want to retrieve only data that have same date_Add and output it to the table_patients Here is the code private void btn_GoActionPerformed(java.awt.event.ActionEvent evt) { java.util.Date…
kimuryan
  • 15
  • 6
1
vote
5 answers

Incrementing date by 18years in java

1.I want to set the setMaxSelectableDate=18years in JDateChooser so i provided it the date by incrementing milliseconds but how should i increment it by 18years. 2.Incrementing by 18years the calculation comes out to be…
Abby D
  • 39
  • 1
  • 11
1
vote
5 answers

Empty JDateChooser

I'm using JDateChooser for a Javaapp (this is the 1st time i use it). I want to catch fault when the JDateChooser is empty with code like this: if(dcs1.getDate().toString().isEmpty()){ lblOk.setText("Empty"); }else{ Date d =…
Unoken Mouny
  • 157
  • 1
  • 3
  • 14
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

How can I parse the output from a JDateChooser field into something useful?

When I get the date from my JDateChooser I get something like: Fri Nov 02 23:20:32 EST 2012 I've tried using SimpleDateFormat but I get an error saying it's unparseable. I need the date in format: "yyyy-MM-dd" This is the API of the JDateChooser I'm…
user1709291
  • 43
  • 1
  • 8