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

getting value from jDateChooser and saving to MS sql DB

I have two jDateChooser on my dialog , I want to save to MS-SQL DB having issue with that data types. Any idea how to fix this issue ! I can only do this when i convert data type to nvarchar in DB and convert the value to string which returns from…
user3498019
  • 95
  • 1
  • 2
  • 10
2
votes
2 answers

Hide or disable past dates on JDateChooser

I want to disable or hide or make the past dates in JDateChooser not selectable. How can I make this? I've tried to use .setSelectableDateRange but it doesn't work. I also tried .setMinSelectableDate() but still no luck. I don't know but netbeans…
user3337385
  • 83
  • 1
  • 1
  • 10
2
votes
2 answers

How to edit JDateChooser table cell with keyboard

In my Java panel I have a JTable in which two of the columns use the JDateChooser object, from the package com.toedter.calendar, via a custom cell editor. Unlike cells that use text boxes or other simple components, which you can type into without…
Kevin M.
  • 21
  • 3
2
votes
2 answers

How to print DD/MM/YYYY on JDateChooser Field?

How to print DD/MM/YYYY on JDateChooser field? JDateChooser jdc=new JDateChooser(); i am using JDateChooser for selecting date, But i also want to facilitate type date in DD/MM/YYYY format.
Daxesh Prajapati
  • 151
  • 3
  • 13
2
votes
1 answer

how to save & retrieve a null date from mysql db using jdatechooser

I am developing a simple hospital management system for my project with netbeans, so here is my problem in brief. When a patient admits and discharge from a hospital his/her date of admission and date of discharge should be recorded. so I put two…
Damian
  • 27
  • 2
  • 8
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
3 answers

selecting (highlighting) the text of jdatechooser when focus gained

im looking for the line of code, which will select (highlight) the Date-text-string in the jDateChooser when it gets focused. I read that I might have to do something like .selectAll();. but i cant get access to the textfield of the…
Fry
  • 146
  • 4
2
votes
3 answers

How can I set the date to the jDateChooser which is retrieved from the database?

I have a form on which I want to access a date from the database and show in jDateChooser for a particular record. I saved the date as a string in the database. How do I get the date from the database table and how do I set that date in…
Harshali
  • 281
  • 4
  • 9
  • 17
2
votes
3 answers

how to clear JDateChooser field?

I am using a JDateChooser as a component in a JForm. I have setup a JButton, which resets all of the fields on this form to blank. I do not have issues with the actionListener, or the method for clearing, but instead am unsure how to clear the…
Harshali
  • 281
  • 4
  • 9
  • 17
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

JDateChooser setDate call ends execution unexpectedly

I am using Toeder JDateChooser in my stand-alone Java application as seen in the code snippet below. The purpose here is: To shift the the calendar instance to a desired week of the year and then To set the start-date and the end-date of the…
farda
  • 11
  • 2
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
0 answers

How to make enter function jdatechooiser netbens

I need enter function in jdatechooiser Eg. If i select date jdatechooiser then i enter the enterkey the velue going to another label
christy v
  • 21
  • 4
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
12 13