Originally Posted by Nicolai
|
|
I have an application using the Java html generator (i think). It is very limited in generating html-pages regarding fonts, formatting a.s.o. I was wondering if you could use e.g. the mozilla browser engine to be the rendering machine. By embedding I was thinking about having a window in my application that uses e.g. the mozilla engine and not the java html generator.
|
Java is embedded in Mozilla, usually it is simpler to use the Java HTML
Editor Kit which, as you say, has limited capabilities. You make an interesting point; Java is nativily network-centric but the 'browser' is remarkably limited.
Originally Posted by Nicolai
|
|
The output are governed by SQL statements retrieving info from an Oracle database. Here tags for font, formatting is added before send to either the html-geberator or the rtf-generator. It is either converted to rtf for paper prints or to html for on screen display. I was thinking that you could use only of type of outputs (html) reading a CSS-file (maybe) for formatting and then generate the html (both for prints and for screen display)
|
I am working on a not-dissimilar effort this morning. Trying to achieve formatted printing could be done by writing rtf, but that format seems to have been largely replaced with various flavors of xml - for which there are several engines already written in Java or being devleoped as fast as people can write them. Seems to me xml in it's various incantations is very popular in Java right now, though which editor kit to use would have to be researched.
Originally Posted by Nicolai
|
|
One could write to a temporary file that the browser should read using css-formatting (if this is possible). The browser should/could be started at the start of the application.
|
Memory resident files are well established in Java, maybe some of the Java genius we have around here can identifiy something in the swing classes we can begin with.
We have no shortage of gurus, your question is well worded.