Want to integrate Home Assistant with my JavaFX Application

I have set Home Assistant as Home Assistant OS, everything is working fine. But now, I want to integrate that with my JavaFX Application. Is that possible?

I want to achieve something like a WebView inside my Application. But that’s not a productive and native way. That’s why I want you to help me guys with some ideas on how I can achieve this.

Thanks.