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

Insert date from a JDateChooser to a MySql database

hello I do not know how to insert a date from a JDateChooser into mysql converted for the format that accepts mysql ...... I am working with the MVC fremework ... and I am inserting the data in the following way .... is my driver class add a jtxfile…
Curious
  • 111
  • 1
  • 1
  • 10
0
votes
1 answer

How do I add 2 days in number of days from JdateChooser?

I need to take a date from user using JdateChooser then Increment in the days of that date by 2 then save the date in database. I am using eclipse and this is the code I am trying; DateFormat df=new SimpleDateFormat("dd-MM-yyyy"); String…
Maha Waqar
  • 585
  • 1
  • 10
  • 24
0
votes
2 answers

JDateChooser does not appear

I have a Java app and a JDateChooser. The problem comes when I start my app. The JDateChooser remains invisible and appears only after I iconify my app. What I should do? dateChooser = new…
Gabriel
  • 464
  • 4
  • 17
0
votes
0 answers

JTable filter using two (2) JDateChooser

I have 2 jdatechooser, one is datefrom and the other one is dateto. I want to filter my jTable data within the range of those two jdatechooser. My problem is whenever I try to filter the table (with dates within the range of my jdatechoosers), my…
0
votes
1 answer

Sqlite and setting it between dates, Format Correct but still not working

So I'm trying to get a basic sql string to work where it will grab the records in the sqlite database based on between dates. However, for some reason, it doesn't work. I just don't understand why. private void viewTransactionsBetweenDatesTable(){ …
Xevon
  • 15
  • 1
  • 6
0
votes
2 answers

Wondering how to compare JDateChooser with LocalNow

So I'm trying to create an if else statement where if a date from the jdatechooser is before today's date, then an error message would occur. From my knowledge, you can get today's date as LocalDate.now(), format it into a string, and then do a…
Xevon
  • 15
  • 1
  • 6
0
votes
1 answer

Insert data into mysql database with LIKE Clause

I am developing simple swing application to get some information from the database. Two of the field in database table called Used_PR & Create_PR. As follows, Data structure is like mention below. PR-L-Machine-Date-Shift Then I want to retrieve…
MD40
  • 157
  • 2
  • 13
0
votes
0 answers

How to change combo box size in JDateChooser?

I have a problem with JDateChooser. If I increase Dimension or font size, it all increases in size but not combo box (Month). And this I can't read good month selected if I change font size more to 24.
Li Xang
  • 9
  • 5
0
votes
0 answers

sql query to get date from jdatechooser:

Help me: i am trying to populate data from sql database with the selected date from jdatechooser only i.e showing data from database of date 2017-08-30 only. Here is the code: public void actionPerformed(ActionEvent e) { try { Date…
Amna Doll
  • 19
  • 2
0
votes
0 answers

How to set placeholder from JDateChooser_Java Swing

I am using JDateChooser so that users can click calendar to select a date. Currently, textfield next to the calendar starts with an empty field. Only when user selects date in the calendar, the date automatically gets filled into the…
In-young Choung
  • 779
  • 2
  • 8
  • 22
0
votes
0 answers

How to set date value into JDateChooser field when clicked JTable row?

I want to fill all the fields when I click on a table row. If I click a row in table it fills all the JTextField & JComboBox components, but not the JDateChooser. How could I fill date chooser field when I select a row in table? This is the code: …
Yusuf Mohamed
  • 65
  • 1
  • 7
0
votes
1 answer

I need to set the curent date to jdatechooser this code is not working

I need to set the current date to jdatechooser this code is Not working Date date = new Date (); Jdatechooser.setDate(date);
0
votes
1 answer

JLabel setText won't update but getText returns correct value

I have a little program that inputs a date from a JDateChooser component and calculates the number of days from now until the date entered. It uses a MVC pattern, was coded in Netbeans IDE, and calculates the correct number of days but does not…
0
votes
1 answer

Java JDateChooser setCaretposition(0) does not work

When I make the jDateChooser.requestFocusInWindow() the cursor goes to the end of the date field, I want the cursor to be set at the beginning, the function setCaretPosition(0) does not work in this case. How can I set the cursor at the beginning…
0
votes
2 answers

error with jdatechooser cannot find method in java

I am getting an error that it can't find the method getModel() and I am not sure what to do about this. I am trying to make it so that when a button is clicked, the dob variable is set to the value in the jdatechooser. public Calendar…
Jonathan Math
  • 101
  • 2
  • 7