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

problems using JDateChooser with a database

I have a Airport project. I have a gui in which i want to search for certain flights flights. In this gui I have a JDateChooser(because i want to find a certain flight in my database). In the database i have a column called date_dep which is a Data…
CRD
  • 19
  • 4
0
votes
0 answers

jDateChooser casting MsSql date

I have problem with capturing user date input from jDateChooser to insert into mssql table. There similar problems in stackoverflow. It was not solving my problem. Here is code that I capture user date entry…
user3498019
  • 95
  • 1
  • 2
  • 10
0
votes
1 answer

When the date is selected in JDateChooser the day is incorrect. why?

When is select the 1st day of the month ex:- 1st of April 2014, it displays as : 91-04-2014 in the jdatechooser, my dateFormatString is : "dd-mm-yyyy" Here is my code : public class Student extends javax.swing.JFrame { /** * Creates new…
0
votes
3 answers

How to retrieve chosen date from JDatechooser?

I am using Eclipse to do a college project on Java. I realized that java does not have a built in date selector like C#, so I downloaded and added JDateChooser. I tried to retrieve the chosen date but it failed: String Date = dateChooser.getDate();…
XenonDragon
  • 13
  • 2
  • 9
0
votes
1 answer

Getting NullPointerException in JPanel jPanel = jDayChooser1.getDayPanel()

In this i'm trying to get the dates from mysql database and display those dates in a jDayChooser by setting a color.But in JPanel jPanel = jDayChooser1.getDayPanel() im getting the error 'NullPointerException'. public Calender() { // retrieving the…
0
votes
0 answers

How to set maximum year option of the year spinner of com.toedter.calendar.JDateChooser

I'm using com.toedter.calendar.JDateChooser popup in my application and need to set the maximum year option of the year spinner.
Scooby
  • 262
  • 1
  • 3
  • 16
0
votes
0 answers

comparing jdatechooser with a jtextfield

Want to ask how can i compare a textfield with a JDateChooser? if ((JTextField)jDateChooser1.getDateEditor().getUiComponent()).getText() < txtdate) { JOptionPane.showMessageDialog(null, "Cant choose a date that is more previous >than the…
0
votes
2 answers

How to change BackGround of JMonthChooser in Java

Here I am using JMonthChooser and JYearChooser. So how to Change BackGround of JMonthChooser and JYearChooser is there any Idea. how to do it. I am using Netbeans.
Kishan Bheemajiyani
  • 3,429
  • 5
  • 34
  • 68
0
votes
1 answer

How to convert one formatted date String to another format

I have a JDateChooser bean panel named basDate. When i execute System.out.println(basDate.getText()); it returns 12.02.2014 But i must convert and edit it to 2014-02-12 00:00:00.000 Just i want edit and assign new output to a variable coming as…
Lacrymae
  • 157
  • 1
  • 17
0
votes
0 answers

Set different look and feel for a component

I'm making a java application with seaglass look and feel, but I need set the default look and feel for a specific component. The component is a JDateChooser, but with the seaglass LAF this does not display correctly, it displays horribly. How can…
0
votes
1 answer

To check time value in JSpinnerand set date in JDateChooser accordingly

I have two Jdatechooser(named as firstdate and lastdate) and Jspinner(named as starttime and endtime) in a gui. The scenario is, 1.if i open gui i will get the current time and set it in endtime and currenttime-1 in starttime(the code is…
user3164187
  • 1,382
  • 3
  • 19
  • 50
0
votes
0 answers

get a value from JDateChooser and show it back on same JDateChooser

I want to show a value from from database and put it back on the same JDateChooser as input before, I already changed the JDateChooser event property changed: private void txtBirthPropertyChange(java.beans.PropertyChangeEvent evt) { …
0
votes
0 answers

jcalendar bug error it saves 1970-1-1 for date

I have an error with jcalendar, it saves 1970-1-1 date i choose a date from jdatechooser textfield but instead it saves an other year.How can i solve this issue,very weird bug i haven't seen anything similar yet. UPDATE BUTTON CODE private void…
Marios Nikolaou
  • 1,326
  • 1
  • 13
  • 24
0
votes
1 answer

Set first day of week in JDateChooser

I need some help to be able to set the first day of week from Sunday to Monday (change SMTWTFS to MTWTFSS) in com.toedter.calendar.JDateChooser, I tried like this with no result, I'm using version 1.3.3 of JDateChooser: JDateChooser dateChooser =…
0
votes
3 answers

validating a jDateChooser

I have a jFrame in my java application which inserts the selected date into the database. I want to validate if field is empty. The code is like this: if(!this.jtxtDate.getSelectedItem.toString().isEmpty()) { …