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 ! apps/samples/Ensemble8/src/samples/java/ensemble/samples/

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: [Doc only] RT-26385: Finish javadoc for FX 8 3D API

2013-12-10 Thread hang . vo
Changeset: 35d622e670f1 Author:Chien Yang 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 ! modules/graphics/src/main/java/javafx/scene/SubScene.java ! m

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: 8e8

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 wrote: > As I said before, it would be up to the application. If it was critical > that your application do

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 sens

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 mailto:st

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

2013-12-10 Thread hang . vo
Changeset: 8a1e5a4a8a19 Author:John Yoon 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 ! apps/samples/Ensemble8/src/samples/resources/ensemble/samples/media/advancedmedia/preview.png !

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 ! modules/graphics/src/main/java/j

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 wrote: > 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. > > Ste

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

2013-12-10 Thread hang . vo
Changeset: 6a8c274547fa Author:John Yoon 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 ! apps/samples/Ensemble8/src/samples/resources/ensemble/samples/layout/anchorpane/preview.png ! ap

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]. Howeve

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

2013-12-10 Thread hang . vo
Changeset: 3852407693a0 Author:John Yoon 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 ! apps/samples/Ensemble8/src/samples/resources/ensemble/samples/language/changelistener/preview.png

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 me

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? [1

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. [...]

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

2013-12-10 Thread hang . vo
Changeset: 7624a41f79ce Author:John Yoon Date: 2013-12-10 08:21 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/7624a41f79ce [Samples Only][RT-33754] Ensemble Icons ! apps/samples/Ensemble8/src/samples/resources/ensemble/samples/graphics3d/cube/preview.png ! apps

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 styl

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

2013-12-10 Thread hang . vo
Changeset: cbc187e97bb8 Author:John Yoon 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 ! apps/samples/Ensemble8/src/samples/resources/ensemble/samples/controls/choicebox/preview.png ! a

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! So

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 > scen

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 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 visible

[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 Tom Schindl
My code does: > // Force CSS-Reloading > if( isJavaFX2() ) { > ReflectiveInvoke.onStyleManagerClass(scene); > } > > scene.getStylesheets().clear(); > scene.getStylesheets().addAll(contentData.cssFiles); A difference I see is that your stylesheets are on the Root-Container whereas mine a

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 st

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 wrote: > That doesn't work in 2.x because the C

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 r

Re: Reloading stylesheets

2013-12-10 Thread Scott Palmer
Have you tried simply removing and re-adding the stylesheet to the scene? Scott On Tue, Dec 10, 2013 at 7:21 AM, Werner Lehmann < lehm...@media-interactive.de> wrote: > Hi, > > is there a way to reload previously loaded stylesheets (in FX2)? > > Currently I have to restart the application each

Re: Reloading stylesheets

2013-12-10 Thread Tom Schindl
There is internal API: com.sun.javafx.css.StyleManager.getInstance().reloadStylesheets(scene); which is GONE in FX8 (but there it is not needed anyways) if you want to support both platforms you need to use reflection to call it. In e(fx)clipse preview I do: > if( isJavaFX2() ) { > Reflec

Reloading stylesheets

2013-12-10 Thread Werner Lehmann
Hi, is there a way to reload previously loaded stylesheets (in FX2)? Currently I have to restart the application each time I am changing the css. It would be nice to just close and reopen that window instead to see the new styles. I'd like to unload css automatically when closing a window - i

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

2013-12-10 Thread hang . vo
Changeset: 3ef2879ea737 Author:Alexander Kouznetsov Date: 2013-12-10 02:59 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/3ef2879ea737 Ensemble8: Fix for RT-34641 Create 3D sample that demonstrates all the features of PhongMaterial + apps/samples/Ensemble8/src/sa

hg: openjfx/8/graphics/rt: Ensemble8: Fix for build failure.

2013-12-10 Thread hang . vo
Changeset: 02682ee93895 Author:Alexander Kouznetsov Date: 2013-12-09 23:52 -0800 URL: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/02682ee93895 Ensemble8: Fix for build failure. ! apps/samples/Ensemble8/build.xml