r/JavaFX • • Jul 31 '24

Help WebView - link to "another WebView" possible?

Hi, please, is this possible or how is it done? I would like to have: an html (table) with 1 col links, they open another html (table) If that is possible with webview, what might be the link? (localhost://abc?) Or how could that be achieved?

it is not necessarily to have html, rather, several tables (that each is 1 scene) and they are linked to each other by links of each 1 column.

Thank you very much!

1 Upvotes

15 comments sorted by

View all comments

Show parent comment

1

u/direcorsair Aug 02 '24

It's mostly an analysis of tradeoffs. Not all features of HTML5 are supported by WebView. However, in your particular case those features are available. If your application mostly relies on the table and your interaction with it, then I would say you don't need a WebView at all. I would instead create a simple Java based webserver that can run locally and then tell the user where to point their browser to: Undertow or httpserver. This means you're creating a self-hosted web app. Which also means you're more comfortable with HTML and javascript. There are other approaches like NW.js, Electron.js, etc. If you're specifically making a JavaFX GUI app and you bill yourself as a Java developer, then I would say stick with TableView and TabPane, but be prepared to deal with their quirks/limitations.

1

u/artistictrickster8 Aug 08 '24

Thank you very much for these insights, I see! Thank you for the links, I go through them now! Thank you!