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

Retrieve date value from database to jdatechooser

I have a form on which I want to access a date from the database and show in jDateChooser for a particular record. How do I get the date from the database table and how do I set that date in jDateChooser? The datatype on my database is date. …
mkltsss
  • 3
  • 5
0
votes
0 answers

disable a button if date is not selected

I'm creating a swing app with two date fields(date picker) and a button, and the case is like this. Initially, the button will be disabled if the startDateChooser date is not null, then this button should be enabled. if again the startDateChooser…
user3872094
  • 3,269
  • 8
  • 33
  • 71
0
votes
0 answers

JDateChooser in jtable

I have a jtable with a JDateChooser column. I have used the below render and CellEditor impls. Rnederer class JDateChooserRenderer extends JDateChooser implements TableCellRenderer { public JDateChooserRenderer(JDateChooser dateChooser) { …
puneet
  • 79
  • 1
  • 7
0
votes
4 answers

get value from JDateChooser as a filename

I'm trying to get value from JDateChooser and use it as a filename I've created a file with a path, I can write on it, but the only problem is I can't change its name to the variable(data from JDateChooser) Here is the part of the code: JButton…
JNewb
  • 1
  • 2
0
votes
0 answers

How to disable editing options, except for the backspace, of JDateChooser?

I am using JdateChooser to take input from the user. I wanted to disable editing options for the textfield that appears except for the backspace. I used the following code JDateChooser chooser = new JDateChooser(); JTextFieldDateEditor editor =…
0
votes
0 answers

Convert string form JDateChooser into date

I am searching for a small week now for this little problem; I want (the user) to input a date in JDateChooser or JTextField, but im not sure if that works with calendar value in the JTextField. Add 3 month and 45 days to it (to the user given…
Koen2K
  • 1
  • 3
0
votes
0 answers

Date update in Xampp database by Jdatechooser (NOT UPDATING)

Image is also attached i have problem in date update in Database, and i am using netbeans for (java language) with Xampp Database. (code image is in link above) private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { …
0
votes
0 answers

Open JInternalFrame with JDateChooser in it

My JFrame doesn't open JInternalFrame when I use JDateChooser in it. The program runs in Netbeans but when I create a JAR file and copy that JAR file on desktop so program is running but it can't open JInternalFrame.
0
votes
1 answer

jDateChooser not showing day number

I am developing an app in Java using the jDateChooser library. I am using NetBeans as my IDE. When I include a jDateChooser combo through the components palette. I doesn't show me the number of the day. Instead it shows .... I attach you an image…
jpuriol
  • 362
  • 2
  • 14
0
votes
0 answers

How to convert sql.date to util.date so that i can set that date to JDateChooser?

I'm trying to convert sql.date which i'm getting from my sqlite database to util.date. And i want to set that date to JDateChooser. I've literally tried all possible ways but it seems i'm missing something. Can anybody tell me what's wrong? try{ …
Parag Pawar
  • 827
  • 3
  • 12
  • 23
0
votes
1 answer

JdateChooser and mysq.date wont show in table

This is my code that doesn't do anything :). It should generate a table with appointments both assigned and free.My database name is test, table name is programari, column name for date is data, column name for hour is ora and column name for user…
0
votes
1 answer

Dereferencing possible null pointer exception in a if statement using JdateChoosers

I'm a beginner in programming so if possible help me out! I'm doing a program that does selects to DataBase(MySQL) depending in what user choose's to search for. Programm has 4 different things to search: Artigo, Cliente, Vendedor and Data that has…
0
votes
1 answer

How to insert date value from jdatechooser to database table

private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) { String G_ID=gIDText.getText(); String G_Title=(String) titleCombo.getSelectedItem(); String…
Ahamed Zahid
  • 31
  • 2
  • 5
0
votes
1 answer

Insert date from JDateChooser into Oracle DB

I've been trying to use JDateChooser to insert a date into my Oracle db but I keep getting this error: SQL Error: ORA-01861: literal does not match format string. Here is my code. private void addActionPerformed(java.awt.event.ActionEvent…
Jason Ching Yuk
  • 894
  • 2
  • 11
  • 30
0
votes
1 answer

To display age in textfield after user has selected date of birth in JDateChooser

I have a JDateChooser in my program. Whenever the selects his date of birth from JDateChooser , I want his age to be displayed in a JTextField. Initially, I tried to make it work with the MouseListener as : private void…
ninja coder
  • 27
  • 1
  • 8