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
1 answer

Empty JTable of objects

I'm having a problem with the JTable. I'm creating a "library" program and there's a "rental" class. It contains user, book and dates. The problem is that the loans are not displayed. Rental class: public Wypozyczenia(Uzytkownik uzytkownik,…
0
votes
2 answers

How to fix deprecated .getDate()

I've been working on a project and in my private static class MyDateEvaluator , there's a deprecated api and that is getDate(). This is my first code: @Override public boolean isInvalid(Date date) { return date.getDay() == 0; } Then…
poyo
  • 23
  • 6
0
votes
0 answers

I wanted to know how we could add text to the days that are shown on a Jcalendar?

So I'm using the Jcalendar in eclipse, and I wanted to know if there was a way I could show text that the user enters on the day that the user selects using Jdatechooser on the Jcalendar. I also wanted to change the colour of that particular day…
Hassan Zaidi
  • 41
  • 1
  • 7
0
votes
2 answers

JDateChooser cannot be resolved to a type

I'm using eclipse photon with jdk 11, i tried the declaration of a JDateChooser but it couldn't be resolved to a type althought i imported everything in need any idea on how i can make it work
0
votes
0 answers

Calendar.getTime returns incorrect date

I have a JCalendar propertyChangeListener in which I am getting the new selected date using Calendar newValue = (Calendar) evt.getNewValue(). In cases when the old date is 31 and new selected month is one of the 30 days month, when I try to get the…
0
votes
1 answer

Set current date to jDateChooser

I'm working on a project in netbeans and MySQL Workbech. I have a Signup form and I want the user to pick a date. If they don't pick a date I want to use today's date as default. I'm using jcalendar 1.4. How can I set today's date as a…
0
votes
1 answer

How to change colors of specific dates in JCalendar?

I have a problem in changing the colors of the specific dates from JCalendar. There are some instance where I can change the color of the day panel correctly as shown here: It correctly highlighted the 5th and 13th of October that I retrieved from…
PG20
  • 67
  • 1
  • 2
  • 10
0
votes
0 answers

sql query to get date from jdatechooser:

Help me: i am trying to populate data from sql database with the selected date from jdatechooser only i.e showing data from database of date 2017-08-30 only. Here is the code: public void actionPerformed(ActionEvent e) { try { Date…
Amna Doll
  • 19
  • 2
0
votes
1 answer

JOptionPane or JFrame returning value from JCalendar

Is it possible to return a value from JFrame or JOptionPane in which I have Jcalendar from Flib? JCalendar need own Listener class. And i have this: org.freixas.jcalendar.JCalendar jd = new…
newim123
  • 27
  • 6
0
votes
0 answers

JCalendar and IDateEvaluator and PropertyChangeListener

I'm trying to paint a set of specific dates on a JCalendar from toedter using IDateEvaluator but... after adding the DateEvaluator to the DayChooser nothing happens. On a post here I noticed that I needed to set my JCalendar calendar to itself so it…
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 select an date using the JDatePicker in swing?

When i try to add the calendar using JDatePicker, the selected calendar date is not printed. i am in the confusion of whether the calendar date selected properly.when i select the date in the calendar i am getting the below errors. Picked up…
sathya
  • 199
  • 5
  • 26
0
votes
1 answer

Date to Timestamp conversion with Firebird

I need to convert a date (without time component), chosen using toedter JCalendar, to an SQL Timestamp (i.e. with 0:00:00 time part) to use it in SQL queries. I there nothing more simple or elegant than this? What is recommended? Date dt =…
Tom
  • 423
  • 1
  • 4
  • 13
0
votes
1 answer

Refresh RangeEvaluator in a JCalendar

I'm trying to create a calendar to display and modify a schedule. To do this I have to change the color of some dates in that calendar. I have followed examples that created a RangeEvaluator and managed to highlight the dates. The problem is that if…
Hodyr
  • 53
  • 7
0
votes
2 answers

Checking room availability using JTable and JCalendar throws SQL exception

The program I wrote checks for rooms available in a hotel. I used JCalendar for the user to enter the dates and JTable to display the rooms available. The problem is that when I click on Check Availability button, it's throwing an SQL…
Tia
  • 1,220
  • 5
  • 22
  • 47