CalendarTextField - Removing tooltip and other things..

220 views
Skip to first unread message

kamil....@gmail.com

unread,
Nov 26, 2012, 5:56:41 PM11/26/12
to jfxtra...@googlegroups.com
Hi,
I'm using CalendarTextField in my project and I have some usability issues with it:
1. As my app is not in English, how to change tooltip of this control? I tried setTooltip(null) but it doesn't work...
2. How to change icon of the button?
3. Is there a way to change format of the text field to dd.mm.yyyy ?

regards
Kamil Toszek

Tom

unread,
Nov 27, 2012, 1:20:34 AM11/27/12
to jfxtra...@googlegroups.com
Good questions. I probably have to answer "you can't at this time" on all. I figure all these things have not been setup for customization at the moment, but I'll take a look. On 3. you can set the locale, so if you would go for German, that should be dd.mm.yyyy.

Tom
> --
> You received this message because you are subscribed to the Google Groups "JFXtras Users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/jfxtras-users/-/CZepPeBuh-kJ.
> To post to this group, send email to jfxtra...@googlegroups.com.
> To unsubscribe from this group, send email to jfxtras-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jfxtras-users?hl=en.

Lleo

unread,
Nov 28, 2012, 10:54:45 AM11/28/12
to jfxtra...@googlegroups.com, kamil....@gmail.com

If you have the ability to unjar the file (jfxtras-labs-2.2-r5-20121111.205446-5.jar).  Look in the directory under \jfxtras-labs-2.2-r5-20121111.205446-5\jfxtras\labs\internal\scene\control\skin you will see an icon called "CalendarTextFieldCaspianSkinIcon.png".  Changed that file and it will change the pop calender icon.
 
Hope that helps

kamil....@gmail.com

unread,
Nov 28, 2012, 11:56:13 AM11/28/12
to jfxtra...@googlegroups.com
Hi,
I've got email from user "Lleo" - no idea why it's not displayed here also.. anyway, here is his answer:

"If you have the ability to unjar the file (jfxtras-labs-2.2-r5-20121111.205446-5.jar).  Look in the directory under \jfxtras-labs-2.2-r5-20121111.205446-5\jfxtras\labs\internal\scene\control\skin you will see an icon called "CalendarTextFieldCaspianSkinIcon.png".  Changed that file and it will change the pop calender icon."

This answers my second question. (But there should be an api for that too!


Tom, you mean locale for this particular control, or general locale used by application? If you mean default one then, I'm using polish locale by default (mm.dd.yyyy), but it still displays yyyy.mm.dd...



Kamil

Tom

unread,
Nov 28, 2012, 2:39:57 PM11/28/12
to jfxtra...@googlegroups.com
I've fixed the tooltip already and am working settin the icon (imageview) through CSS. It should work out of the box but as always with CSS the trick is to figure out how selector to use. Time is a bit of a problem ATM; over here we have "Sinterklaas" coming weekend, and all I seem to have time for is running in and out of shops.

I mean the control's locale. I need to check if it uses Locale.getDefault as the default value.

Tom





On 2012-11-28 17:56, kamil....@gmail.com wrote:
Hi,
I've got email from user "Lleo" - no idea why it's not displayed here also.. anyway, here is his answer:

"If you have the ability to unjar the file (jfxtras-labs-2.2-r5-20121111.205446-5.jar).ďż˝ Look in the directory under \jfxtras-labs-2.2-r5-20121111.205446-5\jfxtras\labs\internal\scene\control\skin you will see an icon called "CalendarTextFieldCaspianSkinIcon.png".ďż˝ Changed that file and it will change the pop calender icon."

This answers my second question. (But there should be an api for that too!


Tom, you mean locale for this particular control, or general locale used by application? If you mean�default�one then, I'm using polish locale by default (mm.dd.yyyy), but it still displays yyyy.mm.dd...



Kamil

W dniu wtorek, 27 listopada 2012 07:20:27 UTC+1 u�ytkownik Tom Eugelink napisa�:
Good questions. I probably have to answer "you can't at this time" on all. I figure all these things have not been setup for customization at the moment, but I'll take a look. On 3. you can set the locale, so if you would go for German, that should be dd.mm.yyyy.

Tom



On 2012-11-26 23:56, kamil....@gmail.com wrote:
> Hi,
> I'm using CalendarTextField in my project and I have some usability issues with it:
> 1. As my app is not in English, how to change tooltip of this control? I tried setTooltip(null) but it doesn't work...
> 2. How to change icon of the button?
> 3. Is there a way to change format of the text field to dd.mm.yyyy ?
>
> regards
> Kamil Toszek
> --
> You received this message because you are subscribed to the Google Groups "JFXtras Users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/jfxtras-users/-/CZepPeBuh-kJ.
> To post to this group, send email to jfxtra...@googlegroups.com.
> To unsubscribe from this group, send email to jfxtras-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jfxtras-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "JFXtras Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jfxtras-users/-/4J11x-cHR3QJ.

Tom

unread,
Nov 28, 2012, 2:40:36 PM11/28/12
to jfxtra...@googlegroups.com
That's one way of doing it, but not how it should be. A CSS selector should be able to set that.

Tom


On 2012-11-28 16:54, Lleo wrote:
>
> If you have the ability to unjar the file (jfxtras-labs-2.2-r5-20121111.205446-5.jar). Look in the directory under \jfxtras-labs-2.2-r5-20121111.205446-5\jfxtras\labs\internal\scene\control\skin you will see an icon called "CalendarTextFieldCaspianSkinIcon.png". Changed that file and it will change the pop calender icon.
> Hope that helps
> --
> You received this message because you are subscribed to the Google Groups "JFXtras Users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/jfxtras-users/-/Wwvl0pYJkpgJ.

Tom

unread,
Nov 29, 2012, 3:37:11 PM11/29/12
to jfxtra...@googlegroups.com
I'm about to release a new snapshot with fixes for 1 and 2.

.CalendarTextField .icon {
-fx-image: url("AlternateCalendarIcon.jpg");
}

There currently is one compilation error that another developer needs to fix before I can release.

Tom


On 2012-11-26 23:56, kamil....@gmail.com wrote:
> --
> You received this message because you are subscribed to the Google Groups "JFXtras Users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/jfxtras-users/-/CZepPeBuh-kJ.

Lleo

unread,
Dec 6, 2012, 11:29:42 AM12/6/12
to jfxtra...@googlegroups.com
Also wanted to ask if there is a solutions for when the user hold the mouse a little too long on changing the month or year with the popup calendar.  It will start to scroll continously through the years and not stop.  Thanks for the hard work - wonderful calendar!!  Let me know when the update is released.

Lleo

unread,
Dec 6, 2012, 1:02:48 PM12/6/12
to jfxtra...@googlegroups.com
Correction, the problem only occurs for user using windows xp.  (Windows 7/Vista users have no problems with contious scrolling - figure the other user should be ready for an upgrade anyway)

Tom

unread,
Dec 6, 2012, 1:03:39 PM12/6/12
to jfxtra...@googlegroups.com
Well, since I'm on XP also, I still need to take a peek.
To view this discussion on the web visit https://groups.google.com/d/msg/jfxtras-users/-/0iOBTYWTJS4J.

Tom

unread,
Dec 22, 2012, 12:55:11 PM12/22/12
to jfxtra...@googlegroups.com
Are we in the mood / is there a reason to release the current 2.2-r5-SNAPSHOT as 2.2-r5? I've got some minor bugfixes and improvements in there. Nothing large. But BeanAdapter is back in I believe?

Tom

Tom

unread,
Dec 22, 2012, 1:42:19 PM12/22/12
to jfxtra...@googlegroups.com
I cannot reproduce the problem on WXP. So I consider it a fluke.

Tom




On 2012-12-06 19:02, Lleo wrote:
To view this discussion on the web visit https://groups.google.com/d/msg/jfxtras-users/-/0iOBTYWTJS4J.

harimp...@gmail.com

unread,
Feb 20, 2014, 5:15:05 AM2/20/14
to jfxtra...@googlegroups.com, kamil....@gmail.com

Hi 

Need Help ..

Unable to get Tool tip to override the existing message "Type a date or use # for today, or +/-[d|w|m|y] for delta's (for example: -3m for minus 3 months)\nUse cursor up and down plus optional shift (week), ctrl (month) or alt (year) for quick keyboard changes."

Please provide a solution to override the calender tooltip message asap.

Thank you.

tbeernot

unread,
Feb 21, 2014, 1:05:35 AM2/21/14
to jfxtra...@googlegroups.com
You'll get the same answer here as on github; I'll look into it as soon as I've finished the JFXtras extraction.

Tom
--
You received this message because you are subscribed to the Google Groups "JFXtras Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jfxtras-user...@googlegroups.com.

To post to this group, send email to jfxtra...@googlegroups.com.

tbeernot

unread,
Feb 23, 2014, 1:57:31 PM2/23/14
to jfxtra...@googlegroups.com
This is strange, since the tooltip is perfectly overridable; just tested it. Can you provide an simple example?



On 2014-2-20 11:15, harimp...@gmail.com wrote:
--
Reply all
Reply to author
Forward
0 new messages