Questions tagged [jcalendar]

JCalendar is a Java Swing date chooser bean for selecting a date.

JCalendar is a Java Swing date chooser bean for graphically selecting a date. It adheres to the JavaBeans component model. The project's home page is here. Several enhancements and bug fixes have been collected here.

143 questions
0
votes
0 answers

Change color of selected days in calendar jquery

I have the following jQuery calendar: http://www.overset.com/2008/05/12/multiday-calendar-datepicker-jquery-plugin/ What I need is to select the days (eg 2 days), these are marked on the calendar by changing the background color (without having to…
Nacho Sarmiento
  • 463
  • 3
  • 8
  • 17
0
votes
1 answer

Operating JCalendar in a different time zone

I work on a legacy application that makes use of JCalendar. Is it possible to operate JCalendar in a different time zone? The internals of this package seem to assume the local time zone. Our application assumes GMT so we would like dates and times…
Julien Chastang
  • 17,592
  • 12
  • 63
  • 89
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
4 answers

JDateChooser inside JTable cell enter key does not always work

I'm using slightly modified JDateChooserCellEditor class which allows me to put jDateChooser inside my jTable cell. Here is the code of class: public class JDateChooserCellEditor extends AbstractCellEditor implements TableCellEditor…
Matt
  • 11
  • 1
  • 3
0
votes
0 answers

JCalendar save date to different variables

I would like to save the date that I chose with JCalendar in 3 variables. One for the day, month, and year. How is this possible, and how could I do it? I created my code with a JFrame in Netbeans, and with the design tools.
NickName
  • 313
  • 2
  • 9
  • 25
0
votes
1 answer

How do i match a jcalendarcombo date with the default Mysql date format

Am using a jcalendarcombo on a simple interface where a user can pick a date. when i try to save the date to a Db i get an error like this "com.MySQL.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: 'Tue Jul 16 12:06:25 EAT 2013'…
keneth
  • 197
  • 3
  • 4
0
votes
3 answers

JCalendar set specific date colors

I am using the code from the solution to set the colors of a specific date in toedter's JCalendar at Add specific background colors to JDaychooser Dates. The problem with this solution is that it sets a different day for each month because the first…
user2273278
  • 1,275
  • 2
  • 14
  • 19
0
votes
1 answer

How to map an array index to a certain date?

I want to map an index from my 3D array to a date. I have an array (sortedData[34][12][31]) and I would like to have it so that if a date is selected from JCalendar it corresponds to the correct index in my array. E.g. say the date 01/01/1974 is…
JmJ
  • 1,989
  • 3
  • 29
  • 51
0
votes
0 answers

JCalendar Build

Using JCalendar, I have entered the following code from this site: private void jCalendar2PropertyChange(java.beans.PropertyChangeEvent evt) { JCalendar jc = new JCalendar(); jc.addPropertyChangeListener("calendar", new…
0
votes
1 answer

Convert JCalendar event c.getTime() to SimpleDateFormat

I want to convert the selected date into the format"dd-MM-yyyy" because c.getTime returns "Sun Mar 3 12:34:46 IST 2013" private class MyDateListener implements DateListener { public void dateChanged(DateEvent e) { Calendar c =…
Muhsina M
  • 21
  • 2
  • 8
0
votes
1 answer

data in JTable is not changed

I was playing with JTable today, and i found something that i think "impossible". I can't find what is wrong with this code. I have triple checked the code. Let see if someone here can find whats wrong. What i want to achieve is, get some data from…
0
votes
2 answers

Jdatepicker not working in jtable

I have used DatePickerCellEditor for a cell in Jtable. When I select a date from the popup calender, the date with dow mon dd hh:mm:ss zzz yyyy format is displayed. I want to change it to date format (yyyy-MMM-dd). I did try doing by: DateFormat…
sam
  • 1
  • 1
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

How init JCalendar with no default date

i'm using JCalendar and i initialize it in this way: popup = new JPopupMenu(); calendar = new JCalendar(); popup.add(calendar); calendar.addDateListener(new DateListener() { @Override public void dateChanged(DateEvent de) { Calendar c…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
1 2 3
9
10