# OPENRNDR and JavaFX/TornadoFX

**URL:** <https://openrndr.discourse.group/t/openrndr-and-javafx-tornadofx/237>\
**Category:** How to?\
**Created:** [April 25, 2021, 5:26pm UTC](https://openrndr.discourse.group/t/openrndr-and-javafx-tornadofx/237 "2021-04-25T17:26:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![telioc](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@telioc](https://openrndr.discourse.group/u/telioc)\
**Post date:** [April 25, 2021, 5:26pm UTC](https://openrndr.discourse.group/t/openrndr-and-javafx-tornadofx/237/1 "2021-04-25T17:26:28Z")

</div>

I’ve just started using OPENRNDR and I’m enjoying it, but I have a large body of kotlin code with a UI written in TornadoFX (a kotlin JavaFX wrapper).  
Does anyone know if it’s possible to launch an OPENRNDR app window from inside a JavaFX UI or vice versa?

---

<div class="post-metadata">

**Author:** ![edwin](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@edwin](https://openrndr.discourse.group/u/edwin)\
**Post date:** [April 26, 2021, 10:30am UTC](https://openrndr.discourse.group/t/openrndr-and-javafx-tornadofx/237/2 "2021-04-26T10:30:45Z")

</div>

That’s a good question. I have never tried this myself but there is [GitHub - eclipse-efx/efxclipse-drift](https://github.com/eclipse-efx/efxclipse-drift) and also LWJGL provided bindings for it.

Would be good to provide a way to integrate OPENRNDR with existing ui tooling. To increase adaptation 🙂

---

<div class="post-metadata">

**Author:** ![telioc](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@telioc](https://openrndr.discourse.group/u/telioc)\
**Post date:** [April 26, 2021, 11:52am UTC](https://openrndr.discourse.group/t/openrndr-and-javafx-tornadofx/237/3 "2021-04-26T11:52:08Z")

</div>

Thanks for the link, I’ll spend some time on it and see if make any progress…

---

<div class="post-metadata">

**Author:** ![torb](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@torb](https://openrndr.discourse.group/u/torb)\
**Post date:** [May 5, 2021, 7:07am UTC](https://openrndr.discourse.group/t/openrndr-and-javafx-tornadofx/237/4 "2021-05-05T07:07:05Z")

</div>

A use case I might find interesting at some point for OPENRNDR is to embed a OPENRNDR program inside a [Jetpack Compose for Desktop](https://www.jetbrains.com/lp/compose/) component. To make this happened what is required is to provide an OpenGL space and LWJGL bindings for OPENRNDR to use?

---

<div class="post-metadata">

**Author:** ![edwin](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@edwin](https://openrndr.discourse.group/u/edwin)\
**Post date:** [May 7, 2021, 4:59pm UTC](https://openrndr.discourse.group/t/openrndr-and-javafx-tornadofx/237/5 "2021-05-07T16:59:29Z")

</div>

I think what is needed is an OpenGL context (note that Skia can also use Vulkan and Metal contexts). OPENRNDR should have an additional ApplicationJetpack that can use an existing OpenGL context and will handle keyboard and mouse events through Jetpack/Skia.
