Click here to close now.


Java IoT Authors: Carmen Gonzalez, Esmeralda Swartz, Pat Romanski, Liz McMillan, AppDynamics Blog

Related Topics: Java IoT

Java IoT: Article

Browser Wars and Swing on the Desktop

The WebRenderer Swing Edition changes the face of Java Swing applications and the rendering of Web content within Java

The WebRenderer Swing Edition changes the face of Java Swing applications and the rendering of Web content within Java. Before we jump into that, let's take a look back at Web content display in Java desktop applications including the generational changes and Java's very own "Browser Wars."

The date is August 26, 1997. The Netscape Corporation announces1 that they are working with Sun Microsystems to release "a 100% Pure Java version of Netscape Navigator client software by 1998." The Java community rejoices. Along comes 1998 and nothing but silence. Was it just me who missed the release of Netscape Navigator Java Edition? Who pulled the plug and why? A decent Java browser SDK back in 1998 would have gone a long way toward popularizing Java on the desktop. Instead, we're left with more than a few beers short of a six-pack.

Java on the desktop has always been somewhat lagging. First, Swing was plagued by a bad image surrounding speed. Then there was poor platform L&Fs, bugs in essential components such as the File chooser, etc., and now in the year 2007 Swing still lacks pure Swing industrial-strength Web content rendering. This fact alone has driven many Java rich-client developers to either seek out third-party components or change the direction of their desktop application development and write their rich client applications in an alternative language that supports standards-compliant rendering, or (and this is the worst) utilize nonstandards-compliant Java browser SDKs and craft the Web content input around the failings of the Web content rendering engine. This paradox was always confusing. Java Web content rendering engines were written to display Web content, but in the end the Web content had to be modified to work around the failings of the Java browser SDKs. Figure that one out!

While Web standards have improved the look and feel of Web sites through CSS and JavaScript and interactivity has increased through AJAX, Java enterprise Web applications have boomed, but Java still lacks quality Web content rendering for its Swing toolkit. How could this important detail be omitted in the decade of the Web boom?

Through all this mess, over the last decade a budding community of ISVs and large software vendors have taken the challenge with open arms and developed their own Java browser SDKs of varying architectures and with mixed results spawning their very own "Browser Wars."

First-Generation Web Content Rendering
Web content rendering in Java started life as a clean room, pure-Java implementation of an HTML parsing engine and utilized Swing drawing routines to render the graphics. The Sun default Java implementation (JEditorPane) was, and still is, basic and did not support any standards outside basic HTML, so various companies developed "commercial-strength" pure Java browser SDKs. These SDKs followed the same paradigm as the default Java implementation, but extended this to support JavaScript and other Web standards. The key limitation of pure Java browsers is they do not live up to the rendering standards delivered by Firefox and Internet Explorer.

The sheer scale of Web standards meant that small private companies in the Web content rendering space had to hire small armies to develop anything that was remotely standards compliant. Then there were issues with dynamic content such as JavaScript, and additional Web styles such as CSS 1 and 2. The task of developing a pure Java browser was and still is monumental. A standards-compliant pure Java browser is not a commercially viable prospect. The first-generation Java browsers ended up with a lightweight implementation that often "broke" on real-world Web content. Due to this fact, first-generation Java browsers are slowly dying out with the major vendors withdrawing support, paving the way for a new wave of Java browser SDKs.

Second-Generation Web Content Rendering
This first round of Web content rendering engines can be referred to as first-generation rendering engines. The next step in the development of Java browser SDKs was brought to life by JadeLiquid Software, which developed the WebRenderer Desktop Edition, a commercial-strength, native-based Java browser SDK. The release of the first second-generation, Web content rendering engine occurred back in 2002 with the release of the WebRenderer Desktop Edition. The development affected the face of Web content display in Java by bringing the market-leading native browsers (Mozilla, Internet Explorer, and Safari) through to the Java environment for use in Java rich client applications. Many copycat developments, including some from the Java industry giants, have followed and the trend for Java browsers has headed toward the architecture pioneered through the WebRenderer Desktop Edition. The key limitation of second-generation native Java browser SDKs is that they are heavyweight. Being heavyweight, on many occasions they don't play well with the Swing toolkit. While the rendering is phenomenal and standards compliant, Swing integration can be somewhat tricky. Standard JFrames, JPanels, etc., are fine. The integration issues rear their head with JInternalFrames, JTabbedPanes, Glasspanes, JMenus, and the like. The heavyweight-lightweight mixing issue has always created issues for Swing. The WebRenderer Desktop Edition provides a compatibility layer to help with Swing integration but, by design, lightweight and heavyweight components don't mix well together. Despite the integration issues in the commercial space, the second generation of Java browser SDKs have proven themselves as the architecture of choice for commercial grade Web content rendering. Now that you have the history, where to from here? Well, JadeLiquid, the developer of the WebRenderer family of products, has just released a new product that will change the Java browser SDK space and create the third generation.

The Final Frontier
Now that the Java "Browser Wars" are moving toward a conclusion, with the native architecture base winning out for enterprise desktop applications, it will be interesting to watch this space and see what companies, such as Sun Microsystems, do to embrace or "reinvent the wheel" in the eye of the third-generation Java browser SDK, WebRenderer Swing Edition. Sun's latest attempt at building a Java browser SDK (the JDIC program) has been flailing with mixed results. The architecture direction is blatantly wrong and major issues are a dime a dozen. Through the architecture of JDIC Swing compatibility is limited (see second generation) and with time the second generation is destined to end up like the first generation. Word from the Java rumor mill is that Sun's JEditorPane is undergoing some tweaking. Without years of development and a team larger than the entire J2SE team, this is a losing and some would say pointless battle. At best some JEditorPane revisions will result in yet another substandard first-generation browser component or at worst a better version of a broken wheel.

Is WebRenderer Swing Edition the only commercial strength option for "real-world" Web content support within Java Swing applications? You decide.



Third-Generation Web Content Rendering
The WebRenderer Swing Edition is a pure Swing Java browser SDK based upon native parsing and layout of the Mozilla engine (the exact same parsing and layout engine as utilized by Firefox). What does this mean? It means that now Java Swing applications will have commercial-strength Web content rendering in pure Swing. Every line, polygon, image, text, and more will be drawn in pure Swing. The WebRenderer Swing Edition has removed the heavyweight rendering of the native layout and rendering engine. This will provide Java Swing applications with Swing integration and industry-standard rendering.

The rendering quality of Mozilla is paired with the lightweight drawing of Swing, including support for Java Look and Feels (L&F). This means seamless integration into Swing applications with the standards compliance of Mozilla. No longer is there a great divide between Swing and real-world commercial strength Web content rendering. WebRenderer Swing Edition is the first of the third generation of Java browser SDKs. Not only is HTML, CSS 1 & 2, JavaScript (including AJAX) supported, but Java applets and third-party plugins such as Flash are supported. Enterprise technology mash-ups including Java, Web content, AJAX, Flash, and Swing are now possible in a single Java Swing application.

More Stories By Anthony Scotney

Anthony Scotney is the founder and CEO of JadeLiquid Software. He studied science at the University of Tasmania, majoring in computer science. With Anthony at the helm, JadeLiquid Software has grown exponentially since inception and received several awards in recognition of its success including 2005 and 2006 Tasmanian Exporter of the Year (technology) and Australian Exporter of the Year (technology) finalist for 2005 and 2006. JadeLiquid was also named the Tasmanian Technology Company of the Year for 2005 and in 2004 awarded the Microsoft Emerging ICT Business Award. Anthony was awarded the prestigious 2004 Pearcey Award for individual pioneering achievement and contributions to research and development in information technology. In 2005 he was named Tasmanian Young Achiever of the year. In 2007 JadeLiquid has emerged as one of Australia's fastest-growing technology companies and Anthony continues to oversee the architecture and product strategy of the WebRenderer product family.

Comments (1) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.

Most Recent Comments
Catalin 05/18/07 09:33:11 AM EDT

How can this be dated May 26? It's May 18 as I'm reading it.

@ThingsExpo Stories
Too often with compelling new technologies market participants become overly enamored with that attractiveness of the technology and neglect underlying business drivers. This tendency, what some call the “newest shiny object syndrome,” is understandable given that virtually all of us are heavily engaged in technology. But it is also mistaken. Without concrete business cases driving its deployment, IoT, like many other technologies before it, will fade into obscurity.
Today air travel is a minefield of delays, hassles and customer disappointment. Airlines struggle to revitalize the experience. GE and M2Mi will demonstrate practical examples of how IoT solutions are helping airlines bring back personalization, reduce trip time and improve reliability. In their session at @ThingsExpo, Shyam Varan Nath, Principal Architect with GE, and Dr. Sarah Cooper, M2Mi's VP Business Development and Engineering, will explore the IoT cloud-based platform technologies driving this change including privacy controls, data transparency and integration of real time context w...
Electric power utilities face relentless pressure on their financial performance, and reducing distribution grid losses is one of the last untapped opportunities to meet their business goals. Combining IoT-enabled sensors and cloud-based data analytics, utilities now are able to find, quantify and reduce losses faster – and with a smaller IT footprint. Solutions exist using Internet-enabled sensors deployed temporarily at strategic locations within the distribution grid to measure actual line loads.
The buzz continues for cloud, data analytics and the Internet of Things (IoT) and their collective impact across all industries. But a new conversation is emerging - how do companies use industry disruption and technology enablers to lead in markets undergoing change, uncertainty and ambiguity? Organizations of all sizes need to evolve and transform, often under massive pressure, as industry lines blur and merge and traditional business models are assaulted and turned upside down. In this new data-driven world, marketplaces reign supreme while interoperability, APIs and applications deliver un...
The Internet of Everything is re-shaping technology trends–moving away from “request/response” architecture to an “always-on” Streaming Web where data is in constant motion and secure, reliable communication is an absolute necessity. As more and more THINGS go online, the challenges that developers will need to address will only increase exponentially. In his session at @ThingsExpo, Todd Greene, Founder & CEO of PubNub, will explore the current state of IoT connectivity and review key trends and technology requirements that will drive the Internet of Things from hype to reality.
The Internet of Things (IoT) is growing rapidly by extending current technologies, products and networks. By 2020, Cisco estimates there will be 50 billion connected devices. Gartner has forecast revenues of over $300 billion, just to IoT suppliers. Now is the time to figure out how you’ll make money – not just create innovative products. With hundreds of new products and companies jumping into the IoT fray every month, there’s no shortage of innovation. Despite this, McKinsey/VisionMobile data shows "less than 10 percent of IoT developers are making enough to support a reasonably sized team....
You have your devices and your data, but what about the rest of your Internet of Things story? Two popular classes of technologies that nicely handle the Big Data analytics for Internet of Things are Apache Hadoop and NoSQL. Hadoop is designed for parallelizing analytical work across many servers and is ideal for the massive data volumes you create with IoT devices. NoSQL databases such as Apache HBase are ideal for storing and retrieving IoT data as “time series data.”
The IoT market is on track to hit $7.1 trillion in 2020. The reality is that only a handful of companies are ready for this massive demand. There are a lot of barriers, paint points, traps, and hidden roadblocks. How can we deal with these issues and challenges? The paradigm has changed. Old-style ad-hoc trial-and-error ways will certainly lead you to the dead end. What is mandatory is an overarching and adaptive approach to effectively handle the rapid changes and exponential growth.
Today’s connected world is moving from devices towards things, what this means is that by using increasingly low cost sensors embedded in devices we can create many new use cases. These span across use cases in cities, vehicles, home, offices, factories, retail environments, worksites, health, logistics, and health. These use cases rely on ubiquitous connectivity and generate massive amounts of data at scale. These technologies enable new business opportunities, ways to optimize and automate, along with new ways to engage with users.
The IoT is upon us, but today’s databases, built on 30-year-old math, require multiple platforms to create a single solution. Data demands of the IoT require Big Data systems that can handle ingest, transactions and analytics concurrently adapting to varied situations as they occur, with speed at scale. In his session at @ThingsExpo, Chad Jones, chief strategy officer at Deep Information Sciences, will look differently at IoT data so enterprises can fully leverage their IoT potential. He’ll share tips on how to speed up business initiatives, harness Big Data and remain one step ahead by apply...
There will be 20 billion IoT devices connected to the Internet soon. What if we could control these devices with our voice, mind, or gestures? What if we could teach these devices how to talk to each other? What if these devices could learn how to interact with us (and each other) to make our lives better? What if Jarvis was real? How can I gain these super powers? In his session at 17th Cloud Expo, Chris Matthieu, co-founder and CTO of Octoblu, will show you!
SYS-CON Events announced today that ProfitBricks, the provider of painless cloud infrastructure, will exhibit at SYS-CON's 17th International Cloud Expo®, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. ProfitBricks is the IaaS provider that offers a painless cloud experience for all IT users, with no learning curve. ProfitBricks boasts flexible cloud servers and networking, an integrated Data Center Designer tool for visual control over the cloud and the best price/performance value available. ProfitBricks was named one of the coolest Clo...
As a company adopts a DevOps approach to software development, what are key things that both the Dev and Ops side of the business must keep in mind to ensure effective continuous delivery? In his session at DevOps Summit, Mark Hydar, Head of DevOps, Ericsson TV Platforms, will share best practices and provide helpful tips for Ops teams to adopt an open line of communication with the development side of the house to ensure success between the two sides.
SYS-CON Events announced today that IBM Cloud Data Services has been named “Bronze Sponsor” of SYS-CON's 17th Cloud Expo, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. IBM Cloud Data Services offers a portfolio of integrated, best-of-breed cloud data services for developers focused on mobile computing and analytics use cases.
SYS-CON Events announced today that Sandy Carter, IBM General Manager Cloud Ecosystem and Developers, and a Social Business Evangelist, will keynote at the 17th International Cloud Expo®, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA.
Developing software for the Internet of Things (IoT) comes with its own set of challenges. Security, privacy, and unified standards are a few key issues. In addition, each IoT product is comprised of at least three separate application components: the software embedded in the device, the backend big-data service, and the mobile application for the end user's controls. Each component is developed by a different team, using different technologies and practices, and deployed to a different stack/target - this makes the integration of these separate pipelines and the coordination of software upd...
Mobile messaging has been a popular communication channel for more than 20 years. Finnish engineer Matti Makkonen invented the idea for SMS (Short Message Service) in 1984, making his vision a reality on December 3, 1992 by sending the first message ("Happy Christmas") from a PC to a cell phone. Since then, the technology has evolved immensely, from both a technology standpoint, and in our everyday uses for it. Originally used for person-to-person (P2P) communication, i.e., Sally sends a text message to Betty – mobile messaging now offers tremendous value to businesses for customer and empl...
"Matrix is an ambitious open standard and implementation that's set up to break down the fragmentation problems that exist in IP messaging and VoIP communication," explained John Woolf, Technical Evangelist at Matrix, in this interview at @ThingsExpo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
WebRTC converts the entire network into a ubiquitous communications cloud thereby connecting anytime, anywhere through any point. In his session at WebRTC Summit,, Mark Castleman, EIR at Bell Labs and Head of Future X Labs, will discuss how the transformational nature of communications is achieved through the democratizing force of WebRTC. WebRTC is doing for voice what HTML did for web content.
Nowadays, a large number of sensors and devices are connected to the network. Leading-edge IoT technologies integrate various types of sensor data to create a new value for several business decision scenarios. The transparent cloud is a model of a new IoT emergence service platform. Many service providers store and access various types of sensor data in order to create and find out new business values by integrating such data.