Is there any way to input HTML code and output a swing component with the HTML code parsed? (Preferably with webkit.)
Offline
MathWizz wrote:
There is no way to do this without external libraries. Even then it may be quite a project to get working.
yeah, you'd essentially have to make a web browser in java, which is no easy feat
Offline
SJRCS_011 wrote:
MathWizz wrote:
There is no way to do this without external libraries. Even then it may be quite a project to get working.
yeah, you'd essentially have to make a web browser in java, which is no easy feat
Can you recommend me one?
Offline
GeonoTRON2000 wrote:
SJRCS_011 wrote:
MathWizz wrote:
There is no way to do this without external libraries. Even then it may be quite a project to get working.
yeah, you'd essentially have to make a web browser in java, which is no easy feat
Can you recommend me one?
well, i guess you could try lobo, but i dont know how good it is
oh, and webkit is written in C++, so i dont think it would work well with java
Last edited by SJRCS_011 (2012-12-06 17:42:41)
Offline
SJRCS_011 wrote:
GeonoTRON2000 wrote:
SJRCS_011 wrote:
yeah, you'd essentially have to make a web browser in java, which is no easy featCan you recommend me one?
well, i guess you could try lobo, but i dont know how good it is
oh, and webkit is written in C++, so i dont think it would work well with java
I go this error:
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface sun.font.FontManager, but class was expected at org.lobobrowser.util.gui.FontFactory.createFont(FontFactory.java:210) at org.lobobrowser.util.gui.FontFactory.createFont_Impl(FontFactory.java:180) at org.lobobrowser.util.gui.FontFactory.createFont(FontFactory.java:127) at org.lobobrowser.util.gui.FontFactory.getFont(FontFactory.java:98) at org.lobobrowser.html.style.StyleSheetRenderState.<clinit>(StyleSheetRenderState.java:43) at org.lobobrowser.html.domimpl.NodeImpl.<clinit>(NodeImpl.java:39) at org.lobobrowser.html.parser.DocumentBuilderImpl.createDocument(DocumentBuilderImpl.java:143) at org.lobobrowser.html.parser.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:97) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
when I tried to do this:
display.setDocument(dbi.parse((InputStream) new ByteArrayInputStream(WebIO.stripHeaders(WebIO.go(WebIO.METHOD_GET, togo.toExternalForm(), "", "", "")).getBytes()), togo.toExternalForm()), rcontext);
Offline