• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDateChooser difficulty

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I set JDateChooser's mask as a postmortem (after the control is created)?
There is no method to do that.
Thanks
Jack
 
Paul Clapham
Sheriff
Posts: 21889
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDateChooser? There's no such class in the standard Java API. I expect you meant to refer to some other third-party API, in which case it would be helpful if you told us which one.

(I did the web search and found five possibilities; there may be more.)
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:JDateChooser? There's no such class in the standard Java API. I expect you meant to refer to some other third-party API, in which case it would be helpful if you told us which one.

(I did the web search and found five possibilities; there may be more.)


http://www.toedter.com/en/jcalendar/api/com/toedter/calendar/JDateChooser.html

The mask is to be set in the constructor, while it can be set afterward.
 
Campbell Ritchie
Marshal
Posts: 52580
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what does it say in the API documentation? What is the mask supposed to do? Is there a set method for the mask?
 
Jacky Luk
Ranch Hand
Posts: 634
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:And what does it say in the API documentation? What is the mask supposed to do? Is there a set method for the mask?


Sorry, I meant it can't be set, no, sadly, can't be set with a setter.
Just wondering why?
Thanks
Jack
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By mask I take it you mean the dateFormatString
If yes, you can download the source code and check what the constructor does with its value

Um.Ok. Looks like I am confused as usual, because I do see a setDateFormatString()
Maybe you should tell us what you mean by mask
 
Campbell Ritchie
Marshal
Posts: 52580
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever it is, it should be described in the API documentation.
 
m Korbel
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not true there is possible to set TimeZone and/or set SimpleDateFormat (there is JSpinner)

EDIT

- listener is ChangeListener

- use JDateChooserCellEditor class for JTable
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!