Re: Reloading stylesheets

2013-12-10 Thread Tom Schindl
That doesn't work in 2.x because the CSS is cached on a scene base! A trick that could work is to load the CSS with an URL like this like: my.css?timestamp=123456789 but I have not tried that and don't know if this would work. Tom On 10.12.13 13:41, Scott Palmer wrote: Have you tried simply

Re: Reloading stylesheets

2013-12-10 Thread Scott Palmer
Hmm.. I'll have to take a look at what I was doing, because I had something that appeared to work with 2.x and I'm pretty sure I wasn't using internal APIs. Perhaps it was only working by chance. Scott On Tue, Dec 10, 2013 at 7:46 AM, Tom Schindl tom.schi...@bestsolution.atwrote: That

Re: Reloading stylesheets

2013-12-10 Thread Werner Lehmann
Thanks, Tom. Somehow it does not work for me. Any idea? Basically this is what I am doing: Parent root = ... root.getStyleSheets().add(...stylesheets...) Scene scene = new Scene(root) StyleManager.getInstance().reloadStylesheets(scene) Then I show the scene in a JFXPanel, change and save the

[8] Review request for RT-34784: [TextField, PasswordField, TextArea] Selected text is removed on focus leaving

2013-12-10 Thread Anthony Petrov
Hi Petr, Alexander, Please review a fix for https://javafx-jira.kenai.com/browse/RT-34784 -- best regards, Anthony

Re: Reloading stylesheets

2013-12-10 Thread Werner Lehmann
Got it. The key was to move the stylesheets from the root node to the scene before reloading them: scene.styleSheets.clear scene.styleSheets.addAll(root.styleSheets) root.styleSheets.clear styleManager.reload(scene) The hotkey also works now: shift+ctrl+7 reloads CSS while the scene is

Review request: RT-34586,Gtk: MenuButton in MenuButton context on Linux doesn't work

2013-12-10 Thread Martin Sladecek
Anthony, Alexander, please review the following: JIRA: https://javafx-jira.kenai.com/browse/RT-34586 Webrev: http://cr.openjdk.java.net/~msladecek/rt-34586/webrev.00/ Thanks, -Martin

Re: Reloading stylesheets

2013-12-10 Thread Tom Schindl
No on FX8 you need to remove and readd them! So the only thing different is that you omit the reload-call on FX8. Tom On 10.12.13 16:10, Werner Lehmann wrote: Got it. The key was to move the stylesheets from the root node to the scene before reloading them: scene.styleSheets.clear

Re: Reloading stylesheets

2013-12-10 Thread Werner Lehmann
Interesting. Assuming the stylesheets are still cached, how would it know when to reload and not use the cached sheet? Or has sheet processing been optimized so much that caching is not necessary anymore... On 10.12.2013 16:15, Tom Schindl wrote: No on FX8 you need to remove and readd them!

hg: openjfx/8/graphics/rt: [Samples Only][RT-33754] Ensemble Icons

2013-12-10 Thread hang . vo
Changeset: cbc187e97bb8 Author:John Yoon john.y...@oracle.com Date: 2013-12-10 07:56 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/cbc187e97bb8 [Samples Only][RT-33754] Ensemble Icons !

Re: Reloading stylesheets

2013-12-10 Thread David Grieve
The way it works in 8.0 is that there is a cache of loaded stylesheets. When a scene or parent adds a stylesheet, the stylesheet is added to the cache. Any other scene or parent that uses the same stylesheet will get the one from cache. If a scene or parent later removes the stylesheet, the

Re: Reloading stylesheets

2013-12-10 Thread Werner Lehmann
Makes sense. Thanks! On 10.12.2013 17:09, David Grieve wrote: The way it works in 8.0 is that there is a cache of loaded stylesheets. [...]

Re: To Be Or Not To Be (Native), was:Look and feel mechanism?

2013-12-10 Thread Anthony Petrov
We have implemented HW/LW components mixing for AWT/Swing in the past [1]. However, the feature is very limited (no transparency support, etc.), and the limitations come from native system capabilities that can't be worked around easily. Do we really want something limited like this in FX?

Fwd: Reloading stylesheets

2013-12-10 Thread Mark Fortner
It would be nice if there were some documentation for how to get around the memory leak in stylesheets in 7x (since most of us won't be upgrading to 8 until it's actually released). And in general if there were some performance guidelines for JavaFX that would be really helpful. There was some

hg: openjfx/8/graphics/rt: [Samples Only][RT-33754] Ensemble Icons

2013-12-10 Thread hang . vo
Changeset: 3852407693a0 Author:John Yoon john.y...@oracle.com Date: 2013-12-10 09:44 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/3852407693a0 [Samples Only][RT-33754] Ensemble Icons !

Re: To Be Or Not To Be (Native), was:Look and feel mechanism?

2013-12-10 Thread Stephen F Northover
Yes, if it helps an application ship using the components and technology they need to make their product successful. In any case, this discussion is academic. Steve On 2013-12-10 12:25 PM, Anthony Petrov wrote: We have implemented HW/LW components mixing for AWT/Swing in the past [1].

hg: openjfx/8/graphics/rt: [Samples Only][RT-33754] Ensemble Icons

2013-12-10 Thread hang . vo
Changeset: 6a8c274547fa Author:John Yoon john.y...@oracle.com Date: 2013-12-10 10:26 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/6a8c274547fa [Samples Only][RT-33754] Ensemble Icons !

Re: To Be Or Not To Be (Native), was:Look and feel mechanism?

2013-12-10 Thread Felix Bembrick
Stephen, why do you refer to this discussion as academic? Felix On 11 December 2013 05:20, Stephen F Northover steve.x.northo...@oracle.com wrote: Yes, if it helps an application ship using the components and technology they need to make their product successful. In any case, this

hg: openjfx/8/graphics/rt: RT-21569: Document that applications should avoid flooding FX with Platform.runLater calls

2013-12-10 Thread hang . vo
Changeset: 2a14ca6aedf3 Author:kcr Date: 2013-12-10 10:03 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/2a14ca6aedf3 RT-21569: Document that applications should avoid flooding FX with Platform.runLater calls Reviewed-by: anthony !

hg: openjfx/8/graphics/rt: [Samples Only][RT-33754] Ensemble Icons

2013-12-10 Thread hang . vo
Changeset: 8a1e5a4a8a19 Author:John Yoon john.y...@oracle.com Date: 2013-12-10 10:49 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/8a1e5a4a8a19 [Samples Only][RT-33754] Ensemble Icons !

Re: To Be Or Not To Be (Native), was:Look and feel mechanism?

2013-12-10 Thread Stephen F Northover
I was very interesting in heavyweight integration a while back but could not get anyone very enthusiastic about it. Steve On 2013-12-10 1:35 PM, Felix Bembrick wrote: Stephen, why do you refer to this discussion as academic? Felix On 11 December 2013 05:20, Stephen F Northover

Re: To Be Or Not To Be (Native), was:Look and feel mechanism?

2013-12-10 Thread Felix Bembrick
Do you think it's either feasible or viable to the extent that a successful implementation would not have the limitations such as lack of transparency or be limited by the inability to apply Node transforms and functionality to native controls? I mean, such a large undertaking would only made

Re: To Be Or Not To Be (Native), was:Look and feel mechanism?

2013-12-10 Thread Felix Bembrick
Right, I guess what I was really asking was is there any way to craft a LW/HW integration solution that *doesn't* have nasty limitations? On 11 December 2013 07:11, Stephen F Northover steve.x.northo...@oracle.com wrote: As I said before, it would be up to the application. If it was

hg: openjfx/8/graphics/rt: 2 new changesets

2013-12-10 Thread hang . vo
Changeset: a434b613d697 Author:mv157916 Date: 2013-12-06 11:27 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/a434b613d697 RT-34731: Update the JDK 8 build number to b119 in rt/build.properties file in the JavaFX 8 Master forest. ! build.properties Changeset:

hg: openjfx/8/graphics/rt: [Doc only] RT-26385: Finish javadoc for FX 8 3D API

2013-12-10 Thread hang . vo
Changeset: 35d622e670f1 Author:Chien Yang chien.y...@oracle.com Date: 2013-12-10 12:43 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/35d622e670f1 [Doc only] RT-26385: Finish javadoc for FX 8 3D API Reviewed-by: kcr, vadim !

RE: Reloading stylesheets

2013-12-10 Thread John Smith
And in general if there were some performance guidelines for JavaFX that would be really helpful. There is an open-jfx wiki page for JavaFX Performance Tips and Tricks, you could check that and see if it is helpful (if it's not maybe you could edit it and add a new section on performance

hg: openjfx/8/graphics/rt: Ensemble8: Fix for RT-33410 Ensemble8: BrickBreaker jumps sometimes

2013-12-10 Thread hang . vo
Changeset: afa4eebb73b8 Author:Alexander Kouznetsov Date: 2013-12-10 11:13 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/afa4eebb73b8 Ensemble8: Fix for RT-33410 Ensemble8: BrickBreaker jumps sometimes !