Giter VIP home page Giter VIP logo

Comments (2)

pmonks avatar pmonks commented on July 17, 2024

JavaFX provides a technology called "FXML" that seems to serve a similar purpose. FXML can be used within fn-fx as described here, though it could be supported more idiomatically (see issue #62).

from fn-fx.

roti avatar roti commented on July 17, 2024

Why would you want that? Or to be more precise: how do you want to use HTML in JavaFX?

Maybe JavaFX could have chosen to use HTML for the UI description (or a subset or it), though I hardly believe that's even possible. The fact is that they didn't, and I understand why. Beyond the technical difficulties it would have been of questionable value. Electron already gives you the possibility to do HTML UI on the desktop, the only thing missing there is proper multi-threading. HTML has many flaws, you use it because there's no alternative on the Web, not because it's a good piece of technology.

On the other hand, it may be useful to embed a piece of HTML UI in a JavaFX application (similar to the WebView in Android). That would basically mean you need an embedded Browser as a JavaFX component (which most likely will be a native thing) and with some integrations. But I don't know if something like this exists.

from fn-fx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.