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

SQLDataException the syntax of the string representation of date/timeis incorrect while inserting date from a jtable model

I'm adding data to a table model which in turn i will pass to the database.amoung some of the fields am adding is a date object as shown by the code below. String ref = cboReferenceNumber.getSelectedItem().toString(); …
Herb21
  • 365
  • 1
  • 6
  • 12
0
votes
1 answer

How can I save date from swing date chooser to derby tale with date field

I have java swing date chooser and when I passed the date to derby table though prepared insert statement below i got error message refusing the date date type ,in my table i put date type is date . Below the code the second field not accepted…
Mohamed Bawaneen
  • 139
  • 1
  • 12
0
votes
1 answer

ParseException error

I am actually trying to populate a jdatechooser with the date fetched from oracle database. The date is stored as 11-JUL-1995 in the database. But when I try to fetch it from the database using the following code, the error is shown…
Swapnil Sahu
  • 23
  • 2
  • 9
0
votes
0 answers

Weird Date from jDateChooser

I used jDateChooser, downloaded from toedter.com. I add it to my palette and drag and drop to swing application. When I select the date from it, it works perfectly. But I want that date like 2015-01-01. I change dateFormatString to YYYY-MM-DD, it…
JLink
  • 307
  • 1
  • 6
  • 15
0
votes
1 answer

java Jdatechooser default month

I have a JDateChooser and I set a range of dates. If the range is in an another month than the current the JDateChooser open by default on the current month... If I use setDate() and give a date in the range it's works but I would like than the…
yoann
  • 25
  • 1
  • 6
0
votes
1 answer

How to insert into JDate chooser value into db

I have a JDateChooser in my form. and I need to insert it's Date value into DB. I used this method just after "public class Nonacademic extends javax.swing.JInternalFrame {" , and the method I used is mentioned below, public static java.sql.Date…
user5178776
0
votes
2 answers

How can i hide or close popupmenu JDateChooser?

I use JDateChooser and some combobox in one frame. When i open popupcalendar in JDateChooser and do mouse click outside, this popupmenu close. Problem: When i open this calendar and then click to any combobox, calendar popupmenu does not close. Why…
Maksim Zagorodsky
  • 320
  • 1
  • 2
  • 15
0
votes
1 answer

How to pass the date value of a dateChooserCombo to a variable

SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy",Locale.ENGLISH); Calendar c = Calendar.getInstance(); c.setTime(new Date()); c.setTime(sdf.parse(dateChooserCombo1.getSelectedDate().toString()));//code to select…
Herb21
  • 365
  • 1
  • 6
  • 12
0
votes
1 answer

How can I implement FocusListener of JDatePicker?

I want to perform some function in FocusEvent of JDatePicker. I am using below code for implementing FocusListener. Properties p = new Properties(); p.put("text.today", "Today"); p.put("text.month", "Month"); p.put("text.year",…
User123
  • 71
  • 3
  • 14
0
votes
2 answers

Java DatePicker popup calendar

I have downloaded Microba DatePicker and JDatePicker. Can I make it always stay popped up from the start (without actioning the button, and even after choosing the date to remain popped up). What I actually want is getting just the calendar itself,…
MPavel
  • 11
0
votes
0 answers

how i can calculate age in java from JDateChooser

i want to calculate age but this result = 0. this is my code Date tgl = rs.getDate("Tanggal_Lahir");//take from database Date kini = new Date(); int umur = kini.getYear()-tgl.getYear();//.getyear have strikethrough someone…
Henz D'Wraith
  • 93
  • 2
  • 10
0
votes
1 answer

How to setDate of JDateChooser to NULL or "0000-00-00"

This is my code, but it is not working. if (Start.getDate() == null && End.getDate() == null) { Start.setDate(null); End.setDate(null); } So, how can i set the date of JDateChooser to null or "0000-00-00" ? In my program the user can…
Xyryle Buen
  • 43
  • 2
  • 12
0
votes
1 answer

JDateChooser setDateFormat while input into database

ps.setString(26, ((JTextField) Birthday.getDateEditor().getUiComponent()).getText()); That is my code how can i Convert the date format into MMM d, yyyy because the default format of my JDateChooser is yyyy-MM-dd.
Xyryle Buen
  • 43
  • 2
  • 12
0
votes
1 answer

jTable that will listen to jDateChooser's 'textfield'?

Hello everyone I'm trying to make a scheduling system for my System and Analysis Design thesis and I am having trouble trying to connect/bind/make the jTable listen to the jDateChooser's input. Elaborately, I want my scheduling to be like this: I…
edohedo
  • 61
  • 5
0
votes
1 answer

change Month format from jDateChooser

how to change month format in jDateChooser ? this is my code : private DateFormat df = DateFormat.getDateInstance(); private void jButtonInsertActionPerformed(java.awt.event.ActionEvent evt) { String x =…
Okem
  • 395
  • 1
  • 4
  • 12