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
6 answers

Obtaining date from JDateChooser and displaying it in JTextField

I have constructed the following JDateChooser: availFromDate = new JDateChooser(); availFromDate.setDateFormatString("dd/MM/yyyy"); JTextFieldDateEditor dateEditor =…
Freddy
  • 683
  • 4
  • 35
  • 114
0
votes
1 answer

adding JDatepicker in Jframe

I want to develop a Swing desktop application with jlabel, JDateChooser and a submit button. I am using below code : public class Homeg { public static void main(String args[]) { JFrame frame=new JFrame("date display"); …
barun kumar
  • 11
  • 1
  • 1
0
votes
1 answer

How to open JCombobox in a addPropertyChangeListener

In a JDateChooser, we have added a addPropertyChangeListener that detects if a date is chosen. If it is chosen, we want to open a JCombobox. The (date) string is detected when we select, but we can't open the JComboBox. Here is the…
0
votes
4 answers

Error when converting date format to another

I have a String in format "YYYY-MM-dd" and i want convert this into "MMM dd, yyyy" format. I used bellow code to do this; But when i convert "2014-11-18" the output is this "Sun Dec 29 00:00:00 IST 2013" How can I solve this? DateFormat target=new…
chalitha geekiyanage
  • 6,464
  • 5
  • 25
  • 32
0
votes
0 answers

How to validate JDateChooser in swing application?

I'm trying to validate JDateChooser in my swing application. How can I validate my date column before submitting my details to the database.(It has to check whether the date column is filled or not).
0
votes
1 answer

Is there any useful custom class(or function) for choose date?

I'm making program with JAVA 1.4 You should read it again. JAVA 1.4 I also want to use 1.8 but company doesn't allow it I found JDatePicker I thought it would solve my date selecting problem however, Eclipse said "DatePicker doesn't support version…
Kanghoi Choi
  • 69
  • 11
0
votes
3 answers

Disable past dates and 2 weeks from now in JCalendar

I want to disable past dates and 2 weeks from now from a JCalendar. I already have this code: jDateChooser1.getJCalendar().setMinSelectableDate(new Date()); ((JTextFieldDateEditor)jDateChooser1.getDateEditor()).setEditable(false); I already can…
user3331023
  • 100
  • 1
  • 2
  • 10
0
votes
1 answer

How to set jDateChooser as readonly in JAVA?

How to set jDateChooser as readonly in JAVA? I need a non-editable jDateChooser for my project.
user3416315
  • 21
  • 1
  • 7
0
votes
2 answers

I have problems storing Date from JDateChooser into MySQL database

I am having problems passing data from my GUI to MySQL database. I am collecting information from JTextFields and JDateChooser, into the database. Everything else works, except the date. I tried multiple methods that I found online, and none of…
Federico Chin
  • 3
  • 1
  • 1
  • 3
0
votes
1 answer

How to get/compute total number of months using JDateChooser

I'm new to Java How do I get the total number of months between two (2) jdatechooser? I've search already about this but the date was set to the code, In my case I want to put the dates via JDateChooser. I can do this through this code but if the…
0
votes
1 answer

Any listeners available for JXMonthView's traversable buttons?

Working with JXMonthView, it is possible to set it as "Traversable," which means that left and right arrows appear next to the month name in the header. They allow for the user to select a different month to view, effectively traversing through the…
Sturm
  • 689
  • 2
  • 23
  • 52
0
votes
1 answer

Toedter Get Date From JDateChooser

I am using toedter JDateChooser, and I am having problems retrieving the date picked from it. jDateChooser2.setDateFormatString("dd-MMMM-yy"); jDateChooser2.addMouseListener(new java.awt.event.MouseAdapter() { public void…
Daniel
  • 51
  • 1
  • 8
0
votes
2 answers

JDateChooser focusListener

I'm trying to add a focusListener to JDateChooser, so that when the user chooses the dateOfBirth it displays age on the textfield when the focus is lost. But it is not working This is the way i've tried, import java.awt.BorderLayout; public class…
Rohin
  • 516
  • 3
  • 7
  • 20
0
votes
0 answers

Is it possible to make jDateChooser password protected?

I am creating a jDateChooser in a Java Swing App that I want to be only accessible by admins. I have a dialog that prompts for the Admin Password, called "PromptForAdminPasswordDialog," which I would like to launch for validation every time the…
jb37
  • 155
  • 2
  • 5
  • 12
0
votes
0 answers

how to change size of com.toedter.calendar.JDateChooser()'s arrow button

I am use com.toedter.calendar.JDateChooser(). There are year picker and month picker in the GUI. There are two arrow buttons in each pickers. How do I change the size of these buttons? I cannot even get the button object because there is no public…
Joey
  • 2,732
  • 11
  • 43
  • 63