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
0
votes
0 answers

Adding JDateChooser as render to JTable

I'm trying to set JDateChooser(com.toedter.calendar.JDateChooser) into JTable row. When I put this render in empty program it looks and works perfect. But when I'm trying to add this render to JTable,generated by Swing-constructor it loses…
Sashok
  • 1
  • 2
0
votes
1 answer

No suitable constructor found for JDateChooser(string,string,char)

i'm new to java and i tried fixing some code a friend was having trouble with, but i faced an error that kinda confused me the error i got was: no suitable constructor found for JDateChooser(String,String,char) constructor…
0
votes
0 answers

Set date of jDateChooser - null value produced

I'm getting data from Microsoft Access and reading it into an object array and then displaying it on a list. I'm trying to set the date of a jDateChooser using the String from the object. The first time I try to set the date, nothing is…
0
votes
1 answer

JDatechooser shows incorrect date

I'm working on java swing program. to have date and store it's value in jtable i have been using Jdatechooser but it only works once when i run the file but after then it doesn't work and shows incorrect date. SimpleDateFormat sdf = new…
0
votes
1 answer

Why is the value of jDateChooser back to the default value?

I'm using jDateChooser in NetBeans, and when I run the program and choose any date, it is not choosing correctly. For example, if I choose 05-05-2020, it shows 29-12-2018. Also, if it catches the selected date, when I press on another item (any…
Ahmad Abdelbaset
  • 295
  • 2
  • 11
0
votes
0 answers

Return the Value of Date from JDateChooser

So I have made a GUI application where I have 3 TextFields and 1 JDateChooser. During runtime I want to check whether or not the user has typed anything into the Components. If they haven't typed anything I want to show an error message. The Code…
Aurorachilles
  • 83
  • 1
  • 1
  • 8
0
votes
0 answers

How to get time from JDateChooser?

I'm trying to get the date and time from a JDateChooserand put it on a JTextField. The date works, but the time doesn't. It shows 00:00:00. That's my code, what am I missing? jDateChooser1.setDate(java.sql.Date.valueOf(java.time.LocalDate.now()));…
0
votes
1 answer

Converting ISO Date String to Jdatechooser date in java

I am using java with MongoDB to store some info including DATE using jdatechooser and I am trying to set the date in another page from the Data base. When I look in the Db shell i find the date in this format(2019-08-04T17:40:04.022Z) ... I…
0
votes
1 answer

How to know the day of week of selected date from jdatechooser in java

I am using java. I have used JDateChooser to select a date. now I want to display the day (line Sunday, Monday or else day of week) of the selected date. I know how to add JDateChooser but don't know how to get the day of week of selected date.…
0
votes
1 answer

Unexpected inclusion of data in a String where it shouldn't be

I am creating a Swing application using a JTable where you can enter a date and time into one of the columns. I am using JDateChooser and JComboBox drop downs which means I have to convert to String in quite a clumsy way: Object[] row = new…
0
votes
1 answer

How to add multiple columns using model.addRow?

I want to add three variables into three different columns of a row but am running into a problem as I don't know how to add multiple columns at once with model.addRow. My main problem is that I have to use model.addRow in order to convert my…
0
votes
1 answer

How to use com.toedter.calendar.JDateChooser?

I'm using com.toedter.calendar.JDateChooser to search between two dates so I've two jDateChooser components. jDateChooser1 and jDateChooser2 I want retrieve record after select date from second jDateChooser2 in jTable I tried write code in…
user10738240
0
votes
2 answers

JDateChooser cannot be resolved to a type

I'm using eclipse photon with jdk 11, i tried the declaration of a JDateChooser but it couldn't be resolved to a type althought i imported everything in need any idea on how i can make it work
0
votes
1 answer

How to display calculated value in Label without submission? Java

The situation is: I want to use two date values obtained from two jDateChoosers and calculate the number of days between two selected days. The question is: what should I do that after choosing both dates a calculated value would appear in a label…
user9247350
0
votes
1 answer

Set current date to jDateChooser

I'm working on a project in netbeans and MySQL Workbech. I have a Signup form and I want the user to pick a date. If they don't pick a date I want to use today's date as default. I'm using jcalendar 1.4. How can I set today's date as a…