Re: Event when CSS is applied

2015-02-18 Thread Tom Eugelink
On 18-2-2015 08:34, Tomas Mikula wrote: Hope this helps. I'll give it a try! Maybe it will solve some of the TBEERNOT (TODO) tags further down the code. Tom

Re: Question/feedback regarding Windows Hi DPI support and how it will affect applications

2015-02-18 Thread Mike Hearn
Finally, it would be nice to get information about the actual screen DPI. In my tests Screen.getDpi always returns 96, regardless of what it actually is... You can reflectively access Screen.getPixelScale() to learn if you're on Retina. Of course, don't expect to swap out the JRE for a newer

Re: Question/feedback regarding Windows Hi DPI support and how it will affect applications

2015-02-18 Thread Werner Lehmann
Hi Jim, interesting read. I guess I learned more about the topic than I can help. Also found this resource interesting: http://kynosarges.de/GuiDpiScaling.html Some thoughts. Obviously it is less desirable to require every application to do their own scaling. I can't imagine that this would

Re: Question/feedback regarding Windows Hi DPI support and how it will affect applications

2015-02-18 Thread Werner Lehmann
My usecase is not about retina or not. It is about showing a report result in actual size which means I need to scale it depending on the screen DPI. Current workaround is this... -Dcom.sun.javafx.screenDPI=109 ...but I can't really advertise this to users. Werner On 18.02.2015 12:23, Mike

Re: Event when CSS is applied

2015-02-18 Thread Tom Eugelink
On 18-2-2015 08:34, Tomas Mikula wrote: What I think should be done is, instead of trying to hack around Pane, create class NeedlePane that extends Region and overrides layoutChildren. It would create its children in the constructor (or take them as constructor parameters), add them to its

Re: Event when CSS is applied

2015-02-18 Thread Tom Eugelink
I like the improvements to the code. Thanks! Tom

Re: Event when CSS is applied

2015-02-18 Thread Tom Eugelink
On 18-2-2015 21:49, Tomas Mikula wrote: So back to your original question: Basically I would like to be informed when the styling of a node has been applied or changed. Is there some place that can provide this information? Turns out you don't actually need this information ;) Indeed.

Re: Event when CSS is applied

2015-02-18 Thread Tomas Mikula
Hmm, my view is rather reverse to yours: The fact that the implementation of layout is best solved with inheritance is a sign that JavaFX does _not_ aim enough at doing things via composition. Tomas On Wed, Feb 18, 2015 at 4:37 PM, Tom Eugelink t...@tbee.org wrote: On 18-2-2015 21:49, Tomas

Re: Event when CSS is applied

2015-02-18 Thread Tomas Mikula
So back to your original question: Basically I would like to be informed when the styling of a node has been applied or changed. Is there some place that can provide this information? Turns out you don't actually need this information ;) Regards, Tomas On Wed, Feb 18, 2015 at 3:20 PM, Tom

Re: Event when CSS is applied

2015-02-18 Thread Tom Eugelink
(after a night's sleep) Well... I was trying to do things by composition and it did not work. My implemention worked, but it had to depend on a layoutChildren, only at the top level (Skin), which was not fine grained enough. Interesting is that for JFXtras Agenda I used the inherit pattern,

[8u60] Review request: RT-37371 IllegalThreadStateException in WebView when loading flickr.com

2015-02-18 Thread Anton V. Tarasov
Hi Kevin, Vadim, Please review the fix: https://javafx-jira.kenai.com/browse/RT-37371 http://cr.openjdk.java.net/~ant/RT-37371/webrev.0 Thanks, Anton.