Web Browser Components for Java? 21
coonsta queries: "Being able to embed a Web browser is critical to the success of a platform (and the browser). High Stakes, No Prisoners argues this quite eloquently. Windows has an embeddable IE (and Mozilla to boot); Linux has Mozilla; wxWindows has wxHTML; etc. But what does Java have? I can forsake cross-platform support and embed IE, but that won't interact well with Swing; I can embed Mozilla, if Webclient is ever released in a usable form (and what about OS X?); I can use a JTextPane, and forget about nice-looking pages or script; I can Runtime.exec the browser and forget about being able to control it or interact with it; I can use CalPane and forget about JavaScript; or I can buy a component from Company X-dot-com, and subsequently price the software out of the market.
Do any developers know if I can have my cake and eat it to? That is, does anybody know of a cheap, cross-platform Web browser component for Java with a reasonably modern feature set?"
Swing (Score:1)
I think all that Swing is missing is a Javascript interpreter and CSS support. The CSS, and other similar web-feautres, can be added by creatnig a set of UI components that render CSS correctly (just like how the swing components now support plain HTML)
i'm sure there is some pure java, java script interfepreter somewhere - but I don't think you'll find a way to have cross-platform plugins (like for flash, etc).
Re:Swing (Score:3, Insightful)
It was a nice idea, adding the HTML to the swing components, but unless they are going to actually do it right then it's useless.
Rhino (Score:2, Informative)
http://www.mozilla.org/rhino/
I have experimented with it, it works well. Enjoy
Hot Java (Score:1)
One of the great lost opportunities (Score:4, Insightful)
I forgot (Score:1)
Various Browser Components (Score:2, Interesting)
netbeans (Score:1)
here are some others... (Score:2, Informative)
HTMLArea Component [koala.ilog.fr]
Re:here are some others... (Score:2, Interesting)
Re:here are some others... (Score:2, Interesting)
You already nailed it (Score:2)
It's got CSS, HTML v4.0, etc etc. It seems pretty decent, but truth be told I've only used it on a little pilot project I did a while back. I never actually purchased it--just used their demo license. It seemed reasonably OK.
Re:You already nailed it (Score:1)
Write your own? (Score:1)
If you stick to the latest HTML specs it wouldn't be that difficult of a task. You could probably even use Java's XML parser to do a lot of the work. You can have a look at Konqueror [konqueror.org] and Mozilla [mozilla.org] for some ideas on how to handle things if you are unsure of what to do.
Of course there is always Jazilla [sourceforge.net] (Mozilla written in Java). I don't know how far along it is, but you could use it as a starting block at least.
Applet? (Score:2)
Rhino Javascript API (Score:1)
Two HTML components I found (Score:1)
Here are 2 I tried, I liked WebWindow a bit more, but IceSoft's supports more features.