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

Getting null pointer exception at jDateChooser when application starts

I am using jDateChooser plugin on netbeans. When application starts it throws nullpointerException but when I choose date it works fine. The one and only one problem is it throws exception at runtime. Following is my code where I am getting…
Yubaraj
  • 3,800
  • 7
  • 39
  • 57
0
votes
6 answers

Cant get records between two dates

My problem is that I can't fetch all records that are between two dates. I have two JDateChoosers. When I select two dates like '10-apr-2011' to '20-apr-2011' I want all the records between those dates to be displayed in my JList. But I can't get…
Java D
  • 436
  • 1
  • 8
  • 18
0
votes
1 answer

Parse is not giving me the correct date format

public LigneReservation(Date dateArrivee, Date dateDepart, String categorie, int quantite) { super(); SimpleDateFormat form = new SimpleDateFormat("yyyy-MM-dd"); try { this.dateArrivee =…
user2133558
  • 524
  • 2
  • 10
  • 29
0
votes
2 answers

JDatechooser inside JTable Cell

I want to add a JDateChooser inside a JTable Cell. I know how to add a textbox, combobox and checkbox. I allow the user to enter data to the table. The user should be able to select a date for every row. Any help would be appreciated. Thank you
0
votes
1 answer

Rendering Toedter's JDateChooser in JTable column

Excuses for asking the same question again. I am under the impression that if I added to the original question, I wouldn't get as many views. As I'm using an MVC pattern, my Swing GUI is in a different class with the controller creating an instance…
0
votes
1 answer

Toedter's JDateChooser in JTable column

I'll cut to the chase. I'm try to add Toedter's JDateChooser in a column of a JTable. My app is using MVC pattern, this is from my View: scrollPanePermits = new JScrollPane(); tableVehiclePermitHeader = new String[] {"Name", "Expiration…
Shalin
  • 105
  • 2
  • 14
0
votes
2 answers

Set Focus on a JDateChooser

Is it possible to change the focus from a jFormattedTextField to a JDateChooser? I've tried the following: jFormattedTextField.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e){ …
0
votes
1 answer

converting gregorian date to hijri date using java/swing

Does any one know the way to convert gregorian dates to hijri dates using Jdatechooser. (java/swing) any help on the solution will be appreciated. thanks,
aoulhent
  • 301
  • 1
  • 4
  • 18
0
votes
1 answer

netbeans: how to set value to control which is retrieved from database?

I want to fetch records from database & want to set on form. In this form I am using JDateChooser from JCalendar. I have written the following code for this: public void showdata() int a=leaveView.getSelectedRow(); int…
Harshali
  • 281
  • 4
  • 9
  • 17
0
votes
1 answer

Java: How to set value of one JDateChooser to another JDateChooser?

I have two JDateChoosers, One with label 'Start Date' & another with 'End Date'.I have two radio buttons 'single Day' & 'Multiple Day'.If I select 'Single Day' I want to display same date to 'End Date' which selected in 'Start Date'. And I also want…
Harshali
  • 281
  • 4
  • 9
  • 17
-1
votes
1 answer

how to get yesterday instance from jdatechooser

The user needs to select any date (Userdate). I need to set another jdate one day behind this date (needdate). Can you help with this? Date date1 = (Userdate.getDate(),-1); needdate.setDate(date1)
xnanx
  • 1
  • 2
-1
votes
1 answer

How to pass JTable string date to JDateChooser?

I'm trying to pass the data from the JTable for which all the types are String then I want to pass to the JDateChooser when the user selected the row in the table. But I tried parsing the date from string to date type but still, I got an error…
user16916070
-1
votes
1 answer

dateChooser set todays date

I want to set the todays/actual date in datechooser field automatically. I've looked a couple of Stackoverflow topics about this and couldnt find a way to complete this. I dont want to output the date with system.out.println(); but I just want to…
Jay Dee
  • 127
  • 1
  • 2
  • 10
-1
votes
1 answer

How can i set the min and max value in a JDateChooser?

I saw there's another question like this but the answer isn't useful for me since I added the JDateChooser with the design option in NetBeans, so I don't know how to set the min and max date for the pick.
Juan9900
  • 23
  • 4
-1
votes
1 answer

How do i hide or disable all the Sundays on a JDateChooser?

I want to disable all the Sundays on the JDateChooser but I don't know how. I saw some answers earlier while searching and they're using a range with start and end but in my case it's all the sundays in the jdatechooser. It was for our school…
poyo
  • 23
  • 6
1 2 3
12
13