No JavaFX for iOS, Android or WP (original) (raw)

Scott Palmer swpalmer at gmail.com
Tue Oct 9 14:39:42 PDT 2012


On Tue, Oct 9, 2012 at 5:20 PM, John McDonnell <mcdonnell.john at gmail.com>wrote:

Commented in line.

On 9 October 2012 20:04, Mark Fortner <phidias51 at gmail.com> wrote: > - *Support for Swing components within JavaFX. * If the goal is to > replace Swing, then this is one of those essential capabilities that > needs > to be in place. The current examples only demonstrate how to put JavaFX > components within Swing applications. Unfortunately, if you want to > reuse > any existing components (like JFreeCharts for example) within your > project, > you're SOL at the moment. > Should JavaFX be able to reuse Swing components? I don't necessarily think it should. Existing swing components wont have the CSS styling and would look out of place surrounded by a Rich UI. I feel JavaFX should be looking forward, as opposed to adding backward compatibility for various Swing libraries. When/If JavaFX is supported on multiple OS's like iOS, Metro, Android, would users want to see a Swing component, or would they like to see a JavaFX component that looks exactly like it should? Though there are swing component libraries that have the functionality that is needed in JavaFX, like as you mentioned JFreeCharts, but surely thats for a oracle/community to adopt and take forward. To see that the community needs and look to address that with a new feature of JavaFX, or a new JavaFX library. Swing libraries grew over time and started tackling the functionality that was missing in swing, like a property Chart AP, TreeTableView, etc, but we need groups like the JFXtras team to take up the baton. That being said, I hope the next release of functionally for the JavaFX charts is somewhat comparable to the functionality offered in projects like JFreeCharts I agree that If you want Swing, use a JFXPanel in your Swing app until you are ready to go 100% JavaFX. But of course that means JFXPanel needs to work smoothly. It had some rough edges in the beginning. Long term nobody wants two event threads and all the ugly synchronization issues that come up. Deprecate Swing around Java 9 and push forward.

Scott



More information about the openjfx-dev mailing list