Re: RFR: 8236689: macOS 10.15 Catalina: LCD text renders badly

2022-03-15 Thread Mike Hearn
On Wed, 13 Oct 2021 23:59:40 GMT, Phil Race wrote: > On an external (non-retina) monitor JavaFX LCD text on macOS is painful on > the eyes. > Retina diminishes it rather than cures it. > > The problem is a mix of a couple of things > 1) CoreText no longer generates LCD glyphs (except perhaps

Re: Questions ad JavaScript in JavaFX' WebEngine

2020-05-14 Thread Mike Hearn
The WebKit binding code is some of the more complex code in JavaFX. Rather than try to extend the script tag you could instead look at the code for the tag and the old support for Netscape-style plugins.

Re: Remove JavaFX JPMS enforcement

2020-04-21 Thread Mike Hearn
Maybe openjfx.io needs more maintainers? I opened a PR against that repo some days ago and it's not been looked at. The JavaFX docs are certainly a weak point right now, given that the Java 8 era docs aren't really being maintained, and aren't open source, and the main docsite isn't really

Re: Remove JavaFX JPMS enforcement

2020-04-20 Thread Mike Hearn
de note: MethodHandles are not supported by GraalVM native image > and so this would probably collide with the attempts to get JavaFX running > on Android/iOS. > > Am 20.04.20 um 11:28 schrieb Mike Hearn: > > With respect to reflection, it seems like the module system really wants

Re: Remove JavaFX JPMS enforcement

2020-04-20 Thread Mike Hearn
With respect to reflection, it seems like the module system really wants you to use Lookup capabilities rather than "open" modules to reflection. That is, JFX could be changed to use var objects = FXMLLoader.load(MethodHandles.lookup(), new URL("")); The semantics of a Lookup are that it

Re: [EXTERNAL] Explanation of different scaling factors anywhere?

2020-01-30 Thread Mike Hearn
browser you only need > this feature because web-sites are so inconsistent in their styling, which > is normally not the case for desktop applications. > > Just my two €ent > > Am 30.01.20 um 17:29 schrieb Mike Hearn: > > Yes, a scale transform doesn't affect layout. That's t

Re: [EXTERNAL] Explanation of different scaling factors anywhere?

2020-01-30 Thread Mike Hearn
uts don't take the scale factor into > account nor does stuff like ScrollView but i could be wrong. > > Tom > > On 27.01.20 17:29, David Grieve wrote: > > Wouldn't this just be a scale transform? > > -Original Message- > From: openjfx-dev On Behalf Of > M

Explanation of different scaling factors anywhere?

2020-01-27 Thread Mike Hearn
Hello, A feature I often miss when using non-web GUIs is support for browser style zooming. In JavaFX it is quite easy to specify all font sizes in terms of "ems", relative sizes ("largest") or percentages and then adjust the base font size on a root node inside key handlers. This works OK but

DropShadow effect kills gfx responsiveness OS-wide

2018-11-04 Thread Mike Hearn
I'm on macOS High Sierra with a very new and very high end MacBook Pro. I have a pretty basic GUI that uses translucency fairly aggressively. I added a DropShadow effect to some nodes, which looks great, but to my great surprise this one line of code kills the UI performance not of my app, but

Re: JavaFX 11 is released

2018-09-18 Thread Mike Hearn
Excellent work, congratulations to everyone involved and the new site is wonderful.

Re: Is JavaFX going to truly be a community project?

2018-09-02 Thread Mike Hearn
I believe you're over-thinking this Pedro. A quote from Margaret Thatcher springs to mind: "They are casting their problems on society and who is society? There is no > such thing! There are individual men and women and there are families and > no government can do anything except through people

Re: Docs hosting for Java 11?

2018-08-31 Thread Mike Hearn
Thanks!

Re: Docs hosting for Java 11?

2018-08-31 Thread Mike Hearn
eing updated. > > They are not under an open-source license. You would need to read the > license to see what the terms of use are and whether that would meet your > needs. > > -- Kevin > > > On 8/31/2018 9:36 AM, Mike Hearn wrote: > > I was actually referring to all the docs

Re: Docs hosting for Java 11?

2018-08-31 Thread Mike Hearn
I was actually referring to all the docs that *aren't* JavaDocs, like the tutorials, the CSS reference, the getting started guides, interop guides etc. As far as I know they haven't been updated since Java 8, however the API is backwards compatible so they are still useful learning materials. I

Docs hosting for Java 11?

2018-08-31 Thread Mike Hearn
As JavaFX is being removed in Java 11, presumably the docs that come with it won't be hosted by Oracle/openjdk.net anymore. And this is a problem because the way you get JavaFX and its tools will no longer be obvious to newcomers, who won't have read this list or know

Re: WebView and WebGL

2017-09-10 Thread Mike Hearn
> > (And yes, the current JavaFX 3D features are extremely rudimentary and not > particularly useful. I don't expect them to be ever enhanced. They're > effectively "frozen". It's a harsh call but I think they were a mistake > from day one. We need a completely different alternative). > I

Re: Update on FX plans for JDK 9

2015-12-17 Thread Mike Hearn
> > JDK-8091107: Add java.awt.Desktop support to javafx > JDK-8091517: Implement com.apple.eawt APIs that make sense in JavaFX (FX > equivalent for JEP 272) > Exposing platform APIs is a big deal for anyone who wants to make an app that really benefits from being on the desktop. Doing things

Re: Future of JavaFX

2015-12-08 Thread Mike Hearn
I'm pretty surprised by this thread. Guys, JavaFX is a widget toolkit. That's it, that's all it is. GUIs haven't changed that much in their general design and capabilities for decades now, probably the last major 'innovations' being things like the MS Office Ribbon. JFX has all the capabilities

Re: Java & JavaFX on mobiles

2015-10-08 Thread Mike Hearn
Re: AOT. At the JVMLS summit there was a talk on a HotSpot AOT compiler mode. It's being worked on, however, as a commercial feature. RoboVM provides an AOT compiler for iOS.

Re: Fwd: HostServices on Linux Ubuntu 14.04 trusty

2015-09-28 Thread Mike Hearn
I believe the issue it is has a hard-coded name of programs to invoke, and that list isn't always accurate for every Linux host system. On Sat, Sep 26, 2015 at 4:04 PM, John Maton wrote: > Stefan > I confirm that works for me on all platforms, Windows/Mac/Ubuntu, thanks >

Re: Blur effect on live scene?

2015-08-10 Thread Mike Hearn
That seems like a great summary Jim, thanks.

Re: Blur effect on live scene?

2015-08-10 Thread Mike Hearn
Yes, it can be done, and I have done this in my app. Take a look here: https://github.com/vinumeris/lighthouse/blob/master/client/src/main/java/lighthouse/Main.java#L474 I do it by taking a snapshot, then blurring that, then cross-fading, then replacing it with a live blur effect once done. I

Re: Can we use JavaPackager and a get full JRE?

2015-08-09 Thread Mike Hearn
UpdateFX has code that can restart a javapackager packaged process, look here: https://github.com/vinumeris/updatefx/blob/master/api/src/main/java/com/vinumeris/updatefx/UpdateFX.java#L60 It's not beautiful but it works. You could extract the code and use it in your app: UpdateFX is Apache

Re: Results of review of private JavaFX API for consideration to make public in JDK 9

2015-08-07 Thread Mike Hearn
If there were to be an API for getting basic graphics device data, what would that look like and would it be hard to write? My app uses some internal APIs not listed above to query the pixel scale and whether we're using software/hardware graphics, to reduce usage of some expensive effects. These

Re: Another JavaFX Application Thread

2015-08-06 Thread Mike Hearn
That seems like a roundabout way to do things. The web tells me: The asciidoctor.js project is a direct port of Asciidoctor from Ruby to JavaScript using the Opal Ruby-to-JavaScript cross compiler Why don't you use JRuby and run the original Asciidoctor code directly in a background thread?

Re: RejectedExecutionException

2015-08-04 Thread Mike Hearn
Race free shutdown in multi-threaded programs is always very hard. At Google some programs and libraries simply didn't support it: for servers, the cost in terms of bugs and extra code was deemed to outweigh the benefits, so the only supported way for a process to end was for it to be killed.

Simple equivalent to display: none?

2015-07-22 Thread Mike Hearn
One common layout task that seems harder than necessary in JavaFX is to temporarily remove a node from the scene graph, without having to actually mess about with the parent container. In HTML you can do use #foo { display: none; } to hide something temporarily. In JFX you have to remove from the

Re: JavaFX features in JDK 9

2015-06-30 Thread Mike Hearn
Be fair, chaps. WebGL is not exactly accessible. Desktop Linux is an extremely niche platform. JFX is open source. If someone wants accessibility support on Linux, they can certainly contribute patches to implement it. The JDK9 plan looks OK to me. It doesn't sound exciting but support Jigsaw

Bug report: HostServicesFactory on Linux needs a more complete browsers list

2015-06-15 Thread Mike Hearn
The file HostServicesFactory.java (I cannot find it in the JFX8+ repo) contains this line of code, for Linux. It should be re-arranged and extended for better compatibility: - static final String[] browsers = new String[]{google-chrome, firefox, opera, konqueror, mozilla}; + static final

Re: Integrated vs. Discrete Graphics on OS X

2015-05-26 Thread Mike Hearn
The relevant Apple dev doc is here: https://developer.apple.com/library/mac/technotes/tn2229/_index.html Essentially it involves setting flags on the GL pixel format. Then you can receive a callback from the OS either via NSOpenGLView or an old C style callback which tells you that the active

Re: Integrated vs. Discrete Graphics on OS X

2015-05-25 Thread Mike Hearn
I believe the tricky part is not setting the magic flag in your Info.plist file but rather handling the GL context changes on the fly. It requires/would require some code in the Mac GL specific part of JavaFX. Otherwise if you force it to integrated then some other app causes a switch to discrete,

Re: slightly ot: java9 runtime images

2015-05-07 Thread Mike Hearn
Do you actually need JAR signatures anyway? The JVM is bundled, it's not like you have to pass some system security policy beyond Gatekeeper/Windows code signing.

Re: JDK 1.8.0 33/40, diacritics and file problems

2015-04-28 Thread Mike Hearn
I thought Mac OS X has a standard normalization for unicode filenames. Linux just treats whatever it gets as bytes so it is up to the software creating the file. Am I correct? Looks like you are: https://developer.apple.com/legacy/library/technotes/tn/tn1150.html#UnicodeSubtleties So HFS+

Re: JDK 1.8.0 33/40, diacritics and file problems

2015-04-28 Thread Mike Hearn
They were rsynced from Mac OS X. I said *original* app. Rsync is not the original app and most likely does not attempt to re-encode or re-normalise Unicode strings. I feared that. In the end it might be even reasonably doable, if I can take advantage of some preconditions... for instance:

Re: Enhancements to 3D for JFX9?

2015-04-24 Thread Mike Hearn
this may mean, people who do this must work with a patched JDK in the future. Right. But I think that's going to be more and more common in future. If you rely on people installing proprietary stuff like JWS or applets then it's a bleak future, as the way forward is clearly bundled JREs. At

Re: Off topic: named parameters

2015-04-21 Thread Mike Hearn
I don't know about JEP submission process, but you'd first have to solve the problem that when Java added serialization of parameter names to class files in Java 8, the OpenJDK devs explicitly decided *not* to expose them for the JDK itself, on the grounds that they didn't want parameter names to

Re: Private APIs not usable in Java 9?

2015-04-09 Thread Mike Hearn
provides to aid in the transition. Also remember FX is open source. You can propose patches ! If there are specific APIs that are missing from FX that are suitable to be *supported* public APIs then those could be considered here (this list). -phil. On 4/8/2015 9:28 AM, Mike Hearn wrote

Re: Private APIs not usable in Java 9?

2015-04-08 Thread Mike Hearn
For the benefit of the devs on the list, could you please point out what private APIs you currently need to use? That way we can make sure proper JIRAs are filed and we can connect those to actual real-world problems. e.g. handling a double click of a file on MacOS is impossible without

Re: Review Request: RT-39975 - AppCDS support for packager

2015-03-31 Thread Mike Hearn
The bug is restricted - intentional? I'm guessing this is class data sharing and would make startup of packaged apps faster? On Tue, Mar 31, 2015 at 12:52 AM, Chris Bensen chris.ben...@oracle.com wrote: +1 On Mar 30, 2015, at 3:11 PM, Danno Ferrin danno.fer...@oracle.com wrote: Kevin,

Re: Review Request: RT-39975 - AppCDS support for packager

2015-03-31 Thread Mike Hearn
, Mar 31, 2015 at 3:59 PM, Chris Bensen chris.ben...@oracle.com wrote: Correct! On Mar 31, 2015, at 4:41 AM, Mike Hearn m...@plan99.net wrote: The bug is restricted - intentional? I'm guessing this is class data sharing and would make startup of packaged apps faster? On Tue, Mar 31, 2015

Re: What are the plans for Java9?

2015-03-31 Thread Mike Hearn
One of the major pain points I see is that the java-packager does not support to set a splash-screen Does your app really need one? My laptop can throw a Stage onto the screen in about 500msec. Then you can just show your own splash whilst the app loads ...

Re: 8u40 is released

2015-03-04 Thread Mike Hearn
Hi Kevin, Scene Builder source code is available in the OpenJFX repo under the BSD license, but separate binaries are no longer being released as of 8u40. I'm a bit confused what this means. People who want to use Scene Builder are expected to compile it themselves from now on? Does that

Re: 8u40 is released

2015-03-04 Thread Mike Hearn
on the latest 8u40 source code in OpenJFX. It includes the 8u40 Controls (e.g. Spinner, Dialogs). Hope this is helpful. - Johan 2015-03-04 16:31 GMT+01:00 Mike Hearn m...@plan99.net: Hi Kevin, Scene Builder source code is available in the OpenJFX repo under the BSD license, but separate

Re: 8u40 is released

2015-03-04 Thread Mike Hearn
Hey Jonathan, If you let us know who does make these decisions, we will happily repeat our questions to them :) Mark Reinhold perhaps? I mean, I appreciate that GUI libraries are probably not a prime driver of sales for Oracle, but as an enterprise focused company I assume management understands

Re: 8u40 is released

2015-03-04 Thread Mike Hearn
2349 Unresolved Bugs seems buggy to me: https://javafx-jira.kenai.com/issues/?jql=issuetype%20%3D%20Bug%20AND%20resolution%20%3D%20Unresolved Any software project always has lots of unresolved issues in the issue tracker, though, especially something as large as a UI toolkit. Qt has about

Re: 8u40 is released

2015-03-04 Thread Mike Hearn
This is what we did at Gluon (http://gluonhq.com), and the result can be downloaded at http://gluonhq.com/products/downloads/ Thanks Johan! Looks like Gluon is the Trolltech equivalent I just wished for - that was fast :-) From your blog post, it sounds like you're planning to fork SB or at

Re: HEADS-UP: [9] New WebKit + compiler upgrade for FX 9

2015-02-24 Thread Mike Hearn
I see, thanks for the background Anton. I haven't used WebView in my own app (partly because it's security sensitive) so didn't realise how integrated the control is! That's indeed a very impressive level of integration. It's possible I'm over-thinking this. Disabling JavaScript is probably

Re: HEADS-UP: [9] New WebKit + compiler upgrade for FX 9

2015-02-20 Thread Mike Hearn
The changeset patch is 185 Mbytes and touches 11,688 files including added, removed, modifiled files. I tried generating a webrev, but it is just too big and unweildy to upload (over 1.6 GBytes). A 185 megabyte patch!? That is .. mind boggling. I don't envy you guys! Couple of

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

Why do the Linux packages go into /opt?

2015-01-27 Thread Mike Hearn
javapackager makes debs that install things into /opt, which means they aren't on the path. Is there a reason for this choice rather than making FHS-compliant packages that install into /usr? thanks!

Re: How to handle file open requests on MacOS

2015-01-05 Thread Mike Hearn
What is Application.getApplication() here? The JavaFX Application class does not have a setOpenFileHandler method. Is that a Mac-specific API? It's too bad that 8u40 won't have this. Being able to easily open double clicked files is pretty basic. Perhaps post 8u40 the JFX team could go through

Re: How to handle file open requests on MacOS

2015-01-05 Thread Mike Hearn
://hg.openjdk.java.net/jdk8u/jdk8u40/jdk/file/564bca490631/src/macosx/classes/com/apple/eawt On Jan 5, 2015, at 10:43 AM, Mike Hearn m...@plan99.net wrote: What is Application.getApplication() here? The JavaFX Application class does not have a setOpenFileHandler method. Is that a Mac-specific API

Re: How to handle file open requests on MacOS

2015-01-05 Thread Mike Hearn
application too, just tried it locally. You may be thinking of an older iteration of the apple application listener classes or perhaps the native level of the code. On Jan 5, 2015, at 11:04 AM, Mike Hearn m...@plan99.net wrote: Scene Builder doesn't do it this way - AFAICT you're only

3D shape not clipped by ScrollPane properly?

2014-12-29 Thread Mike Hearn
I have a ScrollPane into which I put a Pane with a min width/height, and then I place a Button and a Sphere. For both of them I use setLayoutX/Y to move them around. Now when I scroll the ScrollPane I can see it move the button around correctly, and the sphere, but the sphere is able to draw over

Re: [8u40]: Review request for RT-39489: Latest 10.10.2 beta update causes NSTouch exceptions continually

2014-12-01 Thread Mike Hearn
What happens to existing jfx apps once 10.10.2 starts rolling out? Do they all break?! I didn't see much discussion of the scope of this issue in the bug report. On Mon, Dec 1, 2014 at 9:44 PM, Morris Meyer morris.me...@oracle.com wrote: Kevin and David, Please review this patch for the issue

Re: What Scene Builder needs YESTERDAY!

2014-11-24 Thread Mike Hearn
FWIW I've found Scene Builder to work pretty well and haven't missed animation support. Doing it at the code level was good enough. And yes I have built things in Flash, a long time ago. Perhaps my standards are lower, as mostly in the last few years when doing UI work I've been stuck with HTML

Re: Embedding Mac native widgets into a Scene

2014-11-01 Thread Mike Hearn
-31, 9:48 AM, Mike Hearn wrote: JavaFX provides a great set of widgets that are pretty complete, but a few lag behind behind their native counterparts on some platforms. This is especially noticeable with the Mac text field widget, which has things like integrated spelling/grammar checking

Embedding Mac native widgets into a Scene

2014-10-31 Thread Mike Hearn
JavaFX provides a great set of widgets that are pretty complete, but a few lag behind behind their native counterparts on some platforms. This is especially noticeable with the Mac text field widget, which has things like integrated spelling/grammar checking, auto correct, services, speech

Re: Why would most FontAwesome icons work but not one?

2014-10-10 Thread Mike Hearn
I've noticed this with some icons, double check that the font file you're using in FontAwesomeFX does actually contain the icon, FontAwesome seems to add new icons even in minor releases. It's the same JAR on all three platforms, and Windows is the only one it fails on. I don't think it can

Re: Mirrored observable collections

2014-10-10 Thread Mike Hearn
Someone got in touch with me today and pointed out a bug in this code, but it was already fixed by me some time ago. I've refreshed the gist with the latest versions of these classes, but the upstream project is now fully open source. You can get the latest code here:

Re: How do I find out why the render loop is running?

2014-10-03 Thread Mike Hearn
Well, this was a pain in the ass. The cause is indeed ProgressBar/ProgressIndicator. It turns out that they can leak animations even when removed from the scene graph or their parents are made invisible. I filed: https://javafx-jira.kenai.com/browse/RT-38894 I now have a bunch of hacks to set

Re: How do I find out why the render loop is running?

2014-10-03 Thread Mike Hearn
So you are using opacityProperty() and not visibleProperty(), so my exact workaround would not work anyway. I did originally put some code into animatedBind to set visible == false when opacity == 0.0 and vice versa, but it didn't seem to solve the animation leak so I took it out again. BTW

Re: How do I find out why the render loop is running?

2014-09-30 Thread Mike Hearn
2) A control, such as a ProgressIndicator, that uses animation to display changes (even if the control is scrolled off the screen) One common control animation that is easily overlooked is a text cursor, which is animated to blink - when the control has focus. That would only cause one

Separating observable data structures out into a separate library?

2014-09-21 Thread Mike Hearn
Observable data structures are a useful and general abstraction, which JavaFX deploys to great effect. Combined with the mirroring techniques I posted about a few months ago I found them to be a good way of combining background work and network-updated state with GUI apps. For this reason, they'd

Lighthouse

2014-09-12 Thread Mike Hearn
I've open sourced the JavaFX app I was working on for the past six months or so. Lighthouse is a Bitcoin crowdfunding application that uses some of the more novel features of the Bitcoin protocol to allow middleman free fund raising. There's a video of it in action here:

Re: Tagging UI control

2014-09-08 Thread Mike Hearn
I've not encountered one, but building such a thing should be quite straightforward. You could use CSS to create a text-area like rectangle with an HBox inside it, and then have a no-border textedit that simply expands to fill the available space. When the user presses enter you create an

Image decoding - native or java?

2014-09-03 Thread Mike Hearn
If I load image bits into an Image how is the decoding done? Is this using native code and if so there is a way to swap out the decoding engines for ones written in Java? I see native image libraries in my JRE lib directory so I suspect the answer is, they're decoded in C. I ask because I'm

Re: outstanding resource locks

2014-09-02 Thread Mike Hearn
I see this message quite frequently. What sort of things do you need in these bug reports? On Tue, Sep 2, 2014 at 5:38 PM, Kevin Rushforth kevin.rushfo...@oracle.com wrote: Any time you see this message, it isn't your fault. Rather this is a bug in the JavaFX runtime. Please file a JIRA. --

Re: outstanding resource locks

2014-09-02 Thread Mike Hearn
to demonstrate the bug. I know this can be a challenge for an intermittent bug. -- Kevin Mike Hearn wrote: I see this message quite frequently. What sort of things do you need in these bug reports? On Tue, Sep 2, 2014 at 5:38 PM, Kevin Rushforth kevin.rushfo...@oracle.com wrote: Any time

Any plans to support CSS transitions?

2014-08-29 Thread Mike Hearn
I enjoy iterating on my UI using JFX CSS and a simple hot reload feature I added to my app, but I still have to drop back into writing code for doing animations. In practice this means I use fewer nice animations than I otherwise would, as perfecting them takes longer. CSS3 has a way to denote

Re: How to set CFBundleVersion?

2014-08-25 Thread Mike Hearn
Hi Tony, Please be aware that your messages to this list are getting spamfoldered by Gmail and likely other providers too. Not much you can do about it other than ask the OpenJDK list admins to fix their list so it doesn't break DKIM body hashes. Yahoo has a strict policy and many mailing lists

Re: How to learn the identity of the graphics card?

2014-08-07 Thread Mike Hearn
Thanks for the tip. Bug filed: https://javafx-jira.kenai.com/browse/RT-38224

Re: How to learn the identity of the graphics card?

2014-08-06 Thread Mike Hearn
that with a number of embedded GPUs... ...jim On 8/1/14 2:27 AM, Mike Hearn wrote: Scott is correct about the determining of the SW pipeline. To add to that, if knowing whether you are running on SW is sufficient Unfortunately for the Intel HD4000 card that some older

Re: How to learn the identity of the graphics card?

2014-08-06 Thread Mike Hearn
shouldn't use the word bad card. What I'm saying is that you will have to add it to your blacklist if you don't want JavaFX to use it for rendering due to poor framerate. - Chien On 8/6/2014 9:57 AM, Mike Hearn wrote: The card isn't bad per se, it's just the HD4000 integrated graphics chip

Re: How to learn the identity of the graphics card?

2014-08-01 Thread Mike Hearn
Scott is correct about the determining of the SW pipeline. To add to that, if knowing whether you are running on SW is sufficient Unfortunately for the Intel HD4000 card that some older laptops have, it technically supports 3D but struggles to do basic shader effects at 60fps when running at

How to learn the identity of the graphics card?

2014-07-31 Thread Mike Hearn
I'd like to change my animations depending on whether the users GPU can keep up. For now, I'm OK with some manual string matching on adapter IDs. I see no way in JavaFX to find out what hardware I'm on. Is there a different/other way to get this data, via some other Java API?

Re: How to learn the identity of the graphics card?

2014-07-31 Thread Mike Hearn
Would it be feasible for you to do some measurements / calibration on the system and make the determination based on measured speed? That seems more to the point anyway. I don't know how to do that without actually drawing to the screen, which I don't want to do.

Re: Mirrored observable collections

2014-07-23 Thread Mike Hearn
Thanks Tomas! I'm a big fan of your work and blog. I learned about ReactFX after I started writing my current project, seems like a very useful abstraction indeed, although so far I've found the basic JFX stuff to be nearly sufficient (a few more transformers and mirrored observables were so far

Mirrored observable collections

2014-07-22 Thread Mike Hearn
I have what I imagine is a fairly typical JavaFX application (once it's released I'll post more about it). It has a GUI, some mostly asynchronous state management, and interactions with various servers that can change the apps state. At first I tried the simple and obvious approach in which the

Re: JavaFX at JavaOne 2014

2014-06-23 Thread Mike Hearn
There are no reasons that JavaFX could not work well on mobile platforms, providing there is a JVM. I was convinced that mobile UI toolkits were very specific, but it's really not the case. Android UI Toolkit has really very few mobile specificities for example. It's not so much the

Re: New bundler in 8u20 question...

2014-06-15 Thread Mike Hearn
Does the new bundler still create DMGs as well? AppName-version-MAS.pkg where the -MAS variant is for Mac App Store, this will show up in next weeks build. Could I suggest -AppStore instead of -MAS, which is a rather opaque acronym.

Re: How to force pixels to hit the screen?

2014-05-21 Thread Mike Hearn
Would that runLater() code always run after the splash image was finished being rendered? Unfortunately I tried this and it doesn't work. JavaFX has a dual threaded architecture in which all app logic and scene graph handling happens on the app thread, and the process of drawing a frame

How to force pixels to hit the screen?

2014-05-20 Thread Mike Hearn
I'd like to create my main stage, show some splash widgets, then begin the slower process of hauling the data and rest of the main UI into memory. Unfortunately when I do this most of the startup time has the stage being empty, instead of showing the splash. Introducing some artificial delays

Re: How to force pixels to hit the screen?

2014-05-20 Thread Mike Hearn
As long as you are doing any of the heavy lifting on the FX application thread it will necessarily starve the rendering, since the application thread is where animation is run and rendering is triggered. Applications are encouraged to do computationally expensive tasks or tasks that are

Re: Scene Builder 2.0 released.

2014-05-14 Thread Mike Hearn
Very nice, thanks! On Wed, May 14, 2014 at 7:28 PM, Simon Vienot simon.vie...@oracle.comwrote: In case some of you missed it, we have just pushed Scene Builder 2.0 live [1] yesterday. All details on Jasper's nice blog post [2]. If you have 8 minutes to spare, I encourage you to have a look

Re: Roadmap for javafxpackager?

2014-05-14 Thread Mike Hearn
in the 8u20 version. File associations are coming in a future update, certainly very high on the list of features we want to address. Joe On May 14, 2014, at 2:43 PM, Mike Hearn m...@plan99.net wrote: I've been looking around for the best way to distribute my app. Javafxpackager is a big

Re: How to deploy JavaFX application writen in JavaScript unsing Nashorn

2014-05-07 Thread Mike Hearn
It's probably easiest to have a tiny Java app that just loads the JS files from resources in the JAR and runs it via Nashorn directly. Then all existing tools like jfxpackager, JWrapper etc can treat it like a Java app. On Wed, May 7, 2014 at 3:30 AM, Bilal Soidik bilalsoi...@gmail.com wrote:

Re: Why can Scene's only be constructed on the UI thread?

2014-04-29 Thread Mike Hearn
, April 26, 2014 11:39 AM, Mike Hearn m...@plan99.net wrote: At e(fx)clipse we have an FXML to Java translator who removes all the reflection overhead from FXML. It does not yet support all FXML features but we are steadily improving it and with test cases we are able to fix problems quite fast

Why can Scene's only be constructed on the UI thread?

2014-04-26 Thread Mike Hearn
I'm trying (mostly in vain) to optimise the startup time of my app. It takes about a second to build the main GUI via FXMLLoader.load() - probably because the GUI is getting a little bit complex but I think mostly because it's all running interpreted, as it's one of the first things the app does.

Re: Why can Scene's only be constructed on the UI thread?

2014-04-26 Thread Mike Hearn
At e(fx)clipse we have an FXML to Java translator who removes all the reflection overhead from FXML. It does not yet support all FXML features but we are steadily improving it and with test cases we are able to fix problems quite fast. Maybe this is an option for you? That would be very

Re: Expected frame rates for a full-screen blur

2014-04-07 Thread Mike Hearn
What version of jdk and Swing did you use? Can you check it on the latest jdk8? Ah you're right, Swing does hidpi these days. When I made the decision to start using JFX it didn't. But last time I tried the IntelliJ Oracle JVM builds the UI was pretty messed up so it seemed to still have

Re: Expected frame rates for a full-screen blur

2014-04-04 Thread Mike Hearn
the issue must be something to do with how fast the GPU drains the command queue or something. BTW I tried doing -Dprism.order=j2d to see what would happen, and the GUI hangs before rendering anything. I'll file a bug on that later. On Thu, Apr 3, 2014 at 11:54 AM, Mike Hearn m...@plan99.net wrote

Re: Expected frame rates for a full-screen blur

2014-04-03 Thread Mike Hearn
How does the OS tank? All the OS animations hit the same frame rate as the app itself does. For instance, opening Mission Control is normally smooth, but when a maximized JFX app is animating, it's not. It feels like the GPU is being overworked but as I'm not a GPU expert at all, I'm not sure

Re: Expected frame rates for a full-screen blur

2014-04-02 Thread Mike Hearn
] On Behalf Of Jeff Martin Sent: Tuesday, April 01, 2014 11:17 AM To: Mike Hearn Cc: openjfx-dev@openjdk.java.net Subject: Re: Expected frame rates for a full-screen blur I assume retina optimization was added for JFX 8 (or is on the short list). I think there is a Jira for it. You can

Expected frame rates for a full-screen blur

2014-04-01 Thread Mike Hearn
Hi there, On a MacBook Pro with OS X 10.9.2, does anyone have any estimates for anticipated frame rates of a full-screen animated blur? I noticed that when my window is not maximized, the blur is smooth and high frame-rate. When maximized the blur is somewhat choppy. Unfortunately I have no clue

Re: Expected frame rates for a full-screen blur

2014-04-01 Thread Mike Hearn
things snappy again. This is a bit disconcerting. Does anyone else see such appalling performance impact from the blurred circles demo on their Mac? Is this a driver issue, perhaps? Are there any platforms where this demo hits a good fps? On Tue, Apr 1, 2014 at 6:10 PM, Mike Hearn m...@plan99.net

Re: Expected frame rates for a full-screen blur

2014-04-01 Thread Mike Hearn
might try it with and without retina level resolution. I haven't tested JavaFX 8 with retina, but JFX 7 had serious problems that would go away when I changed the display to non-retina. jeff On Apr 1, 2014, at 11:41 AM, Mike Hearn m...@plan99.net wrote: Actually, playing some more