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

How to solve refreshing page in jDateChooser?

When I select the date from jDateChooser it'll refresh the whole page. Because of that the values I give to the text boxes become null and I get null pointer exception. How can I solve this refresh problem?
GaiArtz
  • 21
  • 2
0
votes
2 answers

getting focused jtextfield in exteds jPanel

i was searching for date chooser solution i'd founed this: https://pzt.me/9oan (pw bravvve) in the jFrame: private JDateChooser getJDateChooser() { if (jChoixDate == null) { jChoixDate = new JDateChooser(); …
0
votes
1 answer

problems with JDateChooser

I just started my first complex java program, which is a bank system program. I want to check if the user is an adult or not. I added a JDateChooser to the frame, i can choose a date, but my problem is that i can not take only the year. `import…
MsLaus
  • 21
  • 4
0
votes
1 answer

Date Must not be null

I want to use the DateChooser in my application. I have already installed and implemented everything in my code and there are no compilation errors, but when I try to run the code the console shows an error that, "Date Must not be Null". What am I…
Pitergann
  • 11
  • 1
0
votes
0 answers

jDateChooser restricted to only select a specific day of the week

Tell me how to make a restriction for choosing by day for the flight that I choose. For example, when I select Paris, only Monday and Wednesday are available for selection throughout the year . I tried to find information but really did not find…
0
votes
0 answers

Java Jcalendar(JdayChooser) how to refresh \ update highlights

This is my code, i have a combobox where choose user by chosen user query select dates from database and return dates this dates are highlights in jcalendar Connect1(); if(txtdoc.getSelectedItem()==null){ } else { SimpleDateFormat…
0
votes
0 answers

JDateChooser fulfill with date by selected item from JComboBox which is connected from database Sqlite

Can someone help me? I want JDateChooser — dateChooserBrithIDCard to fill with date based on the selected item in a JComboBox which is connected to a SQLite database. The code shows an option for JTextField, which works perfectly, like for…
SonyGame
  • 1
  • 1
0
votes
1 answer

Cannot add JDateChooser to IntelliJ IDEA palette

I want to add the JDateChooser component from jcalendar to the designer palette in intellij-idea; but when I'm adding com.toedter:jcalendar:1.4 through Maven dependency or JAR, I'm getting an error: class "com.toedter.calendar.Jdatechooser" cannot…
Vatsal Dholakiya
  • 545
  • 4
  • 19
0
votes
0 answers

How can I remove the time next to Date in jtable using jdatechooser? my Datatype in my access is date/time

I'm new to programming. How can I remove the zero next to the date (2022-04-21 00:00:00.000000)? here is my code: SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); String date =…
0
votes
1 answer

Get all specific week days within the range of two date choosers and 7 checkboxes

I have 2 JDateChooser controls and 7 JCheckBox controls. The date choosers will set a range between two dates, and the 7 checkboxes will filter the dates. The 7 checkboxes are: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday For…
Thevinu
  • 37
  • 8
0
votes
1 answer

How to get date from JDateChooser and format it?

How to get a date from JDateChooser and format it? JDateChooser instance private void jDateChooser1PropertyChange(java.beans.PropertyChangeEvent evt) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); String date =…
user15221488
0
votes
1 answer

Why it shows errors at swing components

I am new to JFrame. I just started learning about creating a Java project. I created an input field as a date and inserted a DateChooseCombo. I have 2 problems. When I run the application dates in the calendar are invisible but, it shows the date…
user11725933
0
votes
1 answer

Can't get date from DateChooserCombo

I'm trying to get the date from DateChooserCombo as follows SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-DD"); String date = sdf.format(dateChooser.getDate()); But the method getDate() gives me error (illegal forward reference). I have also…
0
votes
0 answers

how to validate user input date with system current date in java while using datechooser in an issue class

package librarymanagementsystem; import java.awt.*; import javax.swing.*; import javax.swing.border.*; import com.toedter.calendar.JDateChooser; import java.awt.event.*; import java.sql.*; import java.util.Date; import java.time.LocalDate; public…
Anjali
  • 1
0
votes
1 answer

Java Jdatechooser Foreground

good day I am trying to change the color of the box text (jtextfile) that brings the built-in jdatechooser I am developing an application where the white background of the jdatechooser does not match at all, I have changed the background color of…
ramej
  • 15
  • 6