Re: JavaFX graphics performance and suitability for advanced animations

2013-06-03 Thread John Hendrikx
On 1/06/2013 02:24, Daniel Zwolenski wrote: Can anyone recommend any good screen capture software for windows? Not sure it would capture this problem but it would be useful for some of the other problems I'm seeing in the TD game that I can't seem to reproduce in small snippets of code. I used

Usecase for needsLayout property?

2013-06-05 Thread John Hendrikx
I'm having a bit of a chicken-egg problem with regards to some dynamically sized components I'm displaying in my application. Description: I have a group with a title that wraps some content and displays a title above it -- the entire group, including the title must be hidden and unmanaged

Re: Usecase for needsLayout property?

2013-06-05 Thread John Hendrikx
what's actually happening there? Thanks, -Martin On 06/05/2013 11:29 AM, John Hendrikx wrote: I'm having a bit of a chicken-egg problem with regards to some dynamically sized components I'm displaying in my application. Description: I have a group with a title that wraps some content

ObservableValue Stacktrace

2013-06-05 Thread John Hendrikx
Hi List, I'm getting some log messages sometimes (see at the end) about properties being null (whereas I didn't get them before in JavaFX 2.2). Is this intended as an informative message to the developer, something I should report, or just debug code for the JavaFX team? In this case, the

Re: ObservableValue Stacktrace

2013-06-06 Thread John Hendrikx
prints a warning on the stderr, for the developer to see something went wrong. Regards, -Martin On 5.6.2013 21:38, John Hendrikx wrote: Hi List, I'm getting some log messages sometimes (see at the end) about properties being null (whereas I didn't get them before in JavaFX 2.2

Re: ObservableValue Stacktrace

2013-06-07 Thread John Hendrikx
choice in the case than printing to stderr? -- Kevin Martin Sladecek wrote: On 06/06/2013 10:53 AM, John Hendrikx wrote: Hm, ok -- it is correct that it doesn't fail, the code runs without any problem and everything works as expected. But, what would be the way to avoid these messages in my

Docs for Binding lacking?

2013-06-13 Thread John Hendrikx
Hi List, I'm having a hard time to find good documentation on some aspects of bind and bindDirectional. I found several forum posts, some books and lots of examples, but none really touch upon the subject of references between bindings and garbage collection. Would it be possible to

Re: ConcurrentModificationException during controls test runs

2013-07-17 Thread John Hendrikx
I just got one too, but not related to any ComboBox in b98 as I don't use any ComboBoxes. Probably related to a TreeView control: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:2395) at

Re: A different way to handle pulse timing

2013-08-05 Thread John Hendrikx
On 5/08/2013 20:46, Richard Bair wrote: As I wrote in the previous email, it seems that we currently are not blocked waiting for vsync(), at least on Windows with D3D pipeline. Anyway, even if we fix that, what you propose is that sometimes both threads will be blocked (the render thread

Re: Is Node.setClip() expected detect changes to the clip-Node?

2013-08-05 Thread John Hendrikx
I think I noticed something like this some time ago, but related to a TreeCell. I basically used the clip to make a graphic capable of filling up like a progress bar (there was a graphic that showed a standard non-filled display, and an overlayed graphic that showed the filled form, but was

Re: JavaFX Media issues

2013-08-08 Thread John Hendrikx
On 9/08/2013 02:10, Scott Palmer wrote: The Media APIs are mostly useless in their current state. Other than demoing that you can play a video, they don't go far enough to be of practical value. I tried to get someone to pay attention to them back in the JavaFX 1.0 days

Re: JavaFX Media issues

2013-08-09 Thread John Hendrikx
On 9/08/2013 03:48, Scott Palmer wrote: I have heard rumors of people being able to play HD video via Canvas. I have tried everything and can't come close. (Yes, I have been careful about the pixel format.) I mean, it looks like it is working for a few seconds, but then as the memory fills

Re: Canvas blowing up (was Re: JavaFX Media issues)

2013-08-09 Thread John Hendrikx
On 9/08/2013 20:15, Richard Bair wrote: Also the proposed clear() or empty() option only applies to Canvas correct? i.e. WritableImages don't suffer from these kind of issues and don't require such methods? That is correct (WritableImage we don't provide a 2D API to use to fill the buffer,

Re: Poor quality font rendering

2013-08-21 Thread John Hendrikx
I think I also noticed a change in font rendering around b99 somewhere... the fonts seem to be thinner than before, or perhaps more poorly aligned with pixel boundaries. I'd prefer glyphs laid out in the same way each time, ie. letters are always on a new pixel boundary, so the same letter

Re: Poor quality font rendering

2013-08-22 Thread John Hendrikx
aligned). That said, on Windows for grayscale text, we are not doing that (yet). Are you running Windows, with D3D pipeline ? I would need to see a picture to be sure I understand the problem you describe. Felipe On Aug 21, 2013, at 10:19 AM, John Hendrikx wrote: I think I also noticed a change

Re: Poor quality font rendering

2013-08-22 Thread John Hendrikx
for instance at the text in the Plot section, to me that text looks awful. Is that inside a WebView or some other control? -jct -Original Message- From: openjfx-dev-boun...@openjdk.java.net [mailto:openjfx-dev-boun...@openjdk.java.net] On Behalf Of John Hendrikx Sent: Thursday, 22 August 2013 17:29

Re: Poor quality font rendering

2013-08-22 Thread John Hendrikx
On 22/08/2013 16:45, Phil Race wrote: On 8/22/13 12:29 AM, John Hendrikx wrote: System.setProperty(prism.lcdtext, false); So you deliberately asked for it to be different than usual Windows apps ? I'm not sure why you do this, but if its in effect we can't expect to make any

Re: Poor quality font rendering

2013-08-22 Thread John Hendrikx
Windows, with D3D pipeline ? I would need to see a picture to be sure I understand the problem you describe. Felipe On Aug 21, 2013, at 10:19 AM, John Hendrikx wrote: I think I also noticed a change in font rendering around b99 somewhere... the fonts seem to be thinner than before

Re: Poor quality font rendering

2013-08-22 Thread John Hendrikx
it asks Windows for this information. --John Regards, Felipe On Aug 22, 2013, at 7:05 AM, John Hendrikx wrote: Those are all normal controls, the plot section is just a Label for example. On 22/08/2013 13:39, John C. Turnbull wrote: John H, it may be just me but pretty much *all

Re: Poor quality font rendering

2013-08-22 Thread John Hendrikx
-dev-boun...@openjdk.java.net [mailto:openjfx-dev-boun...@openjdk.java.net] On Behalf Of John Hendrikx Sent: Thursday, 22 August 2013 17:29 To: openjfx-dev@openjdk.java.net Subject: Re: Poor quality font rendering I took another good look, and I see what is bothering me is mostly how the glyph 2

Re: Font size

2013-08-22 Thread John Hendrikx
On 22/08/2013 22:58, Peter Penzov wrote: Hi, I'm working on JavaFX application based on Java 8. It seems that from version b97 there is a issue with -fx-font-size. It's not working properly. If you compare the two images from application tested on JavaFX 2.2 and JavaFX 8 b103 you will see

Re: Poor quality font rendering

2013-08-28 Thread John Hendrikx
the same test case on Mac ? (Grayscale text, prism.text=t2k *not* set). Unfortunately, I donot own a mac, and can't easily borrow one at this time. --John Regards Felipe On Aug 22, 2013, at 12:54 PM, John Hendrikx wrote: On 22/08/2013 17:38, Felipe Heidrich wrote: John, for the sake of testing

Re: Why is almost everything in the API final

2013-09-03 Thread John Hendrikx
On 3/09/2013 20:34, Richard Bair wrote: I would strongly recommend leaving the shared JRE install world behind. As a suggestion, try JWrapper - we have flawless installs now, even using an OSGI deployment procedure! Bundled JVMs are really the only dependable way to go now it seems? If my

Re: Moving on to a round house kick (forked from Re: JavaOne roundup?)

2013-09-30 Thread John Hendrikx
On 30/09/2013 17:38, Anton Epple wrote: Hi guys, I understand your frustration about the cancelled sessions, and I share it. But when I talk to the engineers and see their posts here, they're clearly interested in the same stuff we'd like to see in JavaFX. I guess nobody was more

Problem with Timeline keeping references around

2013-10-15 Thread John Hendrikx
Hi List, I just submitted https://javafx-jira.kenai.com/browse/RT-33600 which is asking for the Timeline JavaDocs to be more clear on when and where hard references are being created and how to properly clean up after oneself. Most of the docs hardly mention anything when it comes to

Re: Problem with Timeline keeping references around

2013-10-15 Thread John Hendrikx
enter a JIRA. Steve On 2013-10-15 6:35 PM, John Hendrikx wrote: Hi List, I just submitted https://javafx-jira.kenai.com/browse/RT-33600 which is asking for the Timeline JavaDocs to be more clear on when and where hard references are being created and how to properly clean up after oneself

Re: Use ScenePulseListener to avoid expensive recalculations?

2013-11-06 Thread John Hendrikx
pretty lean. I'll experiment with a ScenePulseListener and see how it pans out, it looks like it would be an elegant solution. Thanks Jonathan! I hope that helps. -- Jonathan On 6/11/2013 3:58 a.m., John Hendrikx wrote: Hi List, I'm considering using a ScenePulseListener to avoid

Re: Use ScenePulseListener to avoid expensive recalculations?

2013-11-07 Thread John Hendrikx
On 7/11/2013 09:20, Martin Sladecek wrote: On 11/06/2013 07:31 PM, John Hendrikx wrote: On 5/11/2013 20:10, Jonathan Giles wrote: You're right in that controls don't tend to use ScenePulseListener. This may be due to an oversight on our part, or just that our requirements differ (I don't

Re: Use ScenePulseListener to avoid expensive recalculations?

2013-11-07 Thread John Hendrikx
On 7/11/2013 14:08, Tomas Mikula wrote: On Thu, Nov 7, 2013 at 11:58 AM, John Hendrikxhj...@xs4all.nl wrote: Hm, I found it googling, and since it showed up here: http://docs.oracle.com/javafx/2/api/javafx/scene/Scene.ScenePulseListener.html I figured it was public, but I just noticed the

enterNestedEventLoop as public API?

2013-11-12 Thread John Hendrikx
Hi List, Any chance that Toolkit.getToolkit().enterNestedEventLoop() will in the future become public API? I'm currently using this to create Dialogs based on a Pane to avoid creating Stages (which have the nice show and showAndWait functionality). I duplicated this functionality in a

Re: enterNestedEventLoop as public API?

2013-11-13 Thread John Hendrikx
to workaround it by using Stage, or calling into com.sun.javafx.*, which is not good. Thanks, Artem On 11/13/2013 10:15 AM, John Hendrikx wrote: Hi List, Any chance that Toolkit.getToolkit().enterNestedEventLoop() will in the future become public API? I'm currently using this to create Dialogs based

Re: enterNestedEventLoop as public API?

2013-11-13 Thread John Hendrikx
will have to workaround it by using Stage, or calling into com.sun.javafx.*, which is not good. Thanks, Artem On 11/13/2013 10:15 AM, John Hendrikx wrote: Hi List, Any chance that Toolkit.getToolkit().enterNestedEventLoop() will in the future become public API? I'm currently using this to create

Two Level Focus

2013-11-16 Thread John Hendrikx
Hi list, I'm wondering how well the Conditional Feature TWO_LEVEL_FOCUS works, and if it is allowed to be used on non-embedded platforms. My main JavaFX project is basically a Windows/Linux application that runs without focus and is controlled with a remote control (no mouse or keyboard,

Re: [announce] InhiBeans: mitigate redundant recalculations

2013-12-15 Thread John Hendrikx
Since you are only allowed to modify properties on the JavaFX thread (in most cases), I've been using Platform.runLater() to make sure I observe only complete changes. Basically I register an InvalidationListener on the properties that are relevant, and when one gets triggered I set a boolean

Future of Skins

2014-01-07 Thread John Hendrikx
Hi List, I'm wondering if Skins in their current form are finished or that more changes are still likely to come. The Skin interface is public, and SkinBase is as well. Unfortunately, it seems that even though SkinBase is treated differently by JavaFX from regular Skins, the opportunity was

Re: Future of Skins

2014-01-07 Thread John Hendrikx
On 7/01/2014 14:50, Tomas Mikula wrote: Interesting ideas. I'm wondering, do you switch skins often enough that you are worried about performance (and thus care about reusability of skins)? Because I don't see how reusability of skins saves you lines of code - whether the code is in the

CSS metadata boilerplate

2014-01-07 Thread John Hendrikx
Hi List, I'm in the process of adding CSS metadata to a new control, and I noticed there is a lot of boilerplate. In order to reduce this, I've created some custom classes StyleableProperty classes (SimpleStyleableXXXProperty), which reduces the boilerplate significantly without sacrificing

Re: CSS metadata boilerplate

2014-01-08 Thread John Hendrikx
On 8/01/2014 14:28, David Grieve wrote: The reason things are as they are is because most properties in the core classes are lazily created and I didn't want cause the property to be created just to see if it was bound. But that is a particular concern for the core classes and not so much for

Re: Future of Skins

2014-01-08 Thread John Hendrikx
That's basically how I've solved it so far (although I call the reusable skins Layouts for lack of a more imaginitive name). However, I'd like to support CSS properties as well for the delegates, and I'm not sure how the CSS engine deals with Skins that can change their properties when some

Re: Future of Skins

2014-01-08 Thread John Hendrikx
On 7/01/2014 18:11, Tomas Mikula wrote: With a non-reusable skin, dispose is pretty much just removing the listeners. With a reusable instance, I suspect there is more work to reset the state of the instance (e.g. removing children, or, if you were concerned about performance, returning them

Re: CSS metadata boilerplate

2014-01-09 Thread John Hendrikx
Noticed a slight bug in the code. The line: cssMetaDataByName.put(cssName, cssMetaData); ...needs to be added in the if block where the CssMetaData is created. --John

Re: Move to JIRA [was: Re: [8u] API Request: RT-25613, ObservableValue should have a hasListener(listener) method]

2014-01-22 Thread John Hendrikx
Unfortunately, discussing things in JIRA works very poorly and is a good way to end a productive discussion IMHO. Mailinglists are much better suited to the task, as thousands of interesting mailinglists accross many developer communities will atest to. Keeping a record is good, aren't these

Re: Future of Skins

2014-01-25 Thread John Hendrikx
On 24/01/2014 22:28, David Grieve wrote: On Jan 24, 2014, at 4:02 PM, John Hendrikxhj...@xs4all.nl wrote: I've got an update on this. I've rewritten the code now to make use of multiple skins, and doing some trickery with Factories to make them easily switchable. The main reason I've

Layout issue

2014-02-11 Thread John Hendrikx
From an earlier posting on this list, I came to understand that in JavaFX 8 it is no longer allowed to modify the children list in layoutChildren, and that such modifications may need to be moved to the computerPref* methods. However, I get a different odd issue, and I'm wondering exactly

Re: Layout issue

2014-02-12 Thread John Hendrikx
application it would be great if you can log this as a Jira issue so that we can take a proper look into this for you. Thanks, -- Jonathan On Wednesday, 12 February 2014 5:50:15 a.m., John Hendrikx wrote: From an earlier posting on this list, I came to understand that in JavaFX 8 it is no longer

Re: Layout issue

2014-02-12 Thread John Hendrikx
be great. Yes, I just did, RT-35830 has a nice sample. Thanks for giving some more insight in the layout process. --John Thanks, -Martin On 02/11/2014 05:50 PM, John Hendrikx wrote: From an earlier posting on this list, I came to understand that in JavaFX 8 it is no longer allowed to modify

Re: Proposal on getting warning free (controls) packages

2014-03-21 Thread John Hendrikx
On 20/03/2014 20:57, Tom Schindl wrote: Hi, I've just started looking into getting the controls package warning free and/or suppress them in case not fixable. Most of the generic warnings I've come accross in a first pass involve StyleableProperty cast like this:

Re: Exposing native surface or opengl handle

2014-06-26 Thread John Hendrikx
On 13/06/2014 08:57, Robert KrĂ¼ger wrote: Hi, it has been discussed a number of time in the passed but let me quickly summarize: A number of people have requested a feature that provides the ability to have native code draw into a surface provided by a JavaFX application as fast as

Re: The trouble with Skins

2015-03-22 Thread John Hendrikx
On 22/03/2015 09:59, Tom Eugelink wrote: On 22-3-2015 00:12, John Hendrikx wrote: What I do need however is a way to restore the control to the exact same state it was in before (the same amount of pixels scrolled, the same item at the top, the same item at the bottom

Re: The trouble with Skins

2015-03-22 Thread John Hendrikx
On 22/03/2015 16:18, Tom Eugelink wrote: On 22-3-2015 13:53, John Hendrikx wrote: On 22/03/2015 09:59, Tom Eugelink wrote: On 22-3-2015 00:12, John Hendrikx wrote: What I do need however is a way to restore the control to the exact same state it was in before (the same amount of pixels

Re: The trouble with Skins

2015-03-21 Thread John Hendrikx
On 14/03/2015 08:31, Tom Eugelink wrote: Hi Tomas, I have looked into it, but not yet attempted, but I did do a lot of custom controls. And I agree that it is dubious that a control is a node, and has the properties that come with it. I try to maintain a strict separation in my controls in

Re: The trouble with Skins

2015-03-21 Thread John Hendrikx
For me, I'd like to simply change the Look and Feel and have the same data presented differently (perhaps related to space restrictions, orientation, user preferences). Currently, this can be achieved by changing the Control, or maybe only change the Skin, depending on how radical the

Supposedly lazy binding gets evaluated right away

2017-08-01 Thread John Hendrikx
My understanding of Bindings has always been that they're supposedly only evaluated when actually used (ie. get() is called on them). Javadoc for Binding claims (emphasis mine): "All bindings in the JavaFX runtime are calculated **lazily**. That means, if a dependency changes, the result of

Build fails at graphics:linkWinFont

2018-08-24 Thread John Hendrikx
Hi, I'm trying to get openjfx build on Windows, but I've run into an issue I haven't been able to resolve. Any tips I can try? --John > Task :graphics:linkWinFont FAILED Creating library P:\Dev\git\openjdk-jfx\modules\javafx.graphics\build\libs\font\win\javafx_font.lib and object

Re: Build fails at graphics:linkWinFont

2018-08-25 Thread John Hendrikx
/windows_tools.properties and see if anything looks odd. One thing you could try is to 'rm -rf build', then run 'gradle clean' then try the build again. -- Kevin On 8/24/2018 3:07 PM, John Hendrikx wrote: Hi, I'm trying to get openjfx build on Windows, but I've run into an issue I haven't been able

Review Request for JDK-8209968: Fix rounding error in image scale calculation

2018-09-01 Thread John Hendrikx
Hi, This is a review request for: https://bugs.openjdk.java.net/browse/JDK-8209968 The PR is on Github: https://github.com/javafxports/openjdk-jfx/pull/170 --John

Re: JavaFX Application Thread is recursively re-entrant into Eventhandler handle() method under some circumstances

2018-09-09 Thread John Hendrikx
I see nothing special in the stack trace. When you remove the component, a new MouseEvent *must* trigger (MouseEvent.EXITED) as it always needs to match with MouseEvent.ENTERED. So, the call to 'remove' triggers a new event, which gets handled by the same handler. It is indeed entered

Q: Rotated labels, layout and reflow

2018-12-14 Thread John Hendrikx
Hi list, I get the impression that rotation of Labels needs to be something that is directly supported by Label instead of handling this with a Rotate transform (setRotate). I want to achieve something quite trivial if no rotation was involved, a layout like this, an HBox with 3 labels in

Q: Rotated labels, layout and reflow

2018-12-14 Thread John Hendrikx
(Sent this twice, first message got sent prematurely) Hi list, I get the impression that rotation of Labels needs to be something that is directly supported by Label instead of handling this with a Rotate transform (setRotate). I want to achieve something quite trivial if no rotation was

Re: Q: Rotated labels, layout and reflow

2018-12-15 Thread John Hendrikx
of OpenJFX itself. Graciously, John-Val On 15 Dec 2018, at 12:50, John Hendrikx wrote: (Sent this twice, first message got sent prematurely) Hi list, I get the impression that rotation of Labels needs to be something that is directly supported by Label instead of handling this with a Rotate

Re: Q: Rotated labels, layout and reflow

2018-12-19 Thread John Hendrikx
:06, John Hendrikx wrote: I asked here because, although not a bug, it may be a good feature to support -- and I was looking for confirmation that this really isn't currently possible. It's not a bug because a rotation transform is expected to not change the layout bounds. Making use of Group