hello, i am doing a window using lemur. in that window i want to show a web page (not a browser); this window is shown when i touch an object in my app. How can i embed this web page in a container of Lemur?
Thanks.
hello, i am doing a window using lemur. in that window i want to show a web page (not a browser); this window is shown when i touch an object in my app. How can i embed this web page in a container of Lemur?
Thanks.
If you have an image already then it’s easy… but it sounds like you are looking for something to render a web page? Lemur doesn’t have anything like that but in Java rendering a web page is a bit hit or miss anyway.
I don’t even know what the current state of Java web rendering is right now as it’s been many many years since I used it. If you can find something that renders to an image then it is no problem to integrate.
If you are on android, wouldnt it be possible to just have a native android browser frame overlay the jme application?
Then you only need to sync the rectangle of were to show and how to zoom?
I guess jfx is not available to android or? Else that would be an option as well.
i could embed a web page in a jpanel. But can i embed this jpanl in a container in Lemur?. I can not to show only an image, because this web page has many information that i need to see when touch the object.
Thanks
@CristianGaitanG said: i could embed a web page in a jpanel. But can i embed this jpanl in a container in Lemur?. I can not to show only an image, because this web page has many information that i need to see when touch the object.Thanks
There is no built in support for embedding a JPanel into a Lemur container. If it were me, how I’d do it would be to get the image of the JPanel and put that into the container and then pass the events on to the JPanel. (Doable but non-trivial.)
Empire was basically suggesting that you could use JFX instead of Lemur to do your whole GUI.
I thought I saw another thread about another GUI layer (maybe tonegodgui) where someone was working on HTML rendering. I could use a similar approach in Lemur but I don’t remember what library they were using. Could be worth looking into.
This isn’t really specific to Lemur, but perhaps you can use this, which someone was working on recently: http://hub.jmonkeyengine.org/forum/topic/chromium-browser-display-in-jmonkeyengine-via-java-chromium-embedded-framework/
@reveance said: This isn't really specific to Lemur, but perhaps you can use this, which someone was working on recently: http://hub.jmonkeyengine.org/forum/topic/chromium-browser-display-in-jmonkeyengine-via-java-chromium-embedded-framework/
Thanks. I knew I’d remembered seeing something. It’s worth taking a look at the next time I have some time… I’ve book marked the link.