the last ten years of software development have seen the rise of the internet and open standards, most prominently html. to most non-technical people, web pages (just html over a tcp/ip connection) are the internet. and now html is so pervasive, its usefulness outweighing its flaws, that we find it in many applications that arent strictly web browsers. chat programs, help files, and even a certain online music store are all built on top of the flexibility and ubiquity of html.
what features are we looking for? 【程序编程相关:JNI开发简单入门篇】theres just one problem with html, though. to display it, you need some kind of web browser, usually a component that actually renders the html on screen. for java developers, a good html renderer can be hard to come by. the built-in viewer, the swing htmleditorkit, is quite lacking, and there arent many alternatives. however, the situation isnt as bleak as you might think; there are other renderers out there, we just have to look harder. in this article, we will review 11 different html renderers, comparing their features, compliance, and speed; searching for the best one for any project. part one will consider free (as in either "speech" or "beer") products, while part two will consider licensed commercial offerings. 【推荐阅读:Jar clone的版本冲突】
when deciding how to rate each renderer, we should consider why we need one. what do we need to do with it? html is essentially styled text and images, loaded over a network, with hyperlinks. java, often called the networked programming language, works with all sorts of network components, including urls, quite easily. so the key point we are lacking is styled text. html (and by html i mean html, xhtml, and css 1/2) has become the standard for styled text. and its everywhere.
... 下一页