Skip to main content

Topsy Turvy

Posted by editor on May 29, 2007 at 4:35 AM PDT

When is an applet not an applet?

Everyone knows what an applet is, right? It's a dedicated part of the browser's rendered space, into which Java code can blit some pixels.

Except... what if there are no pixels? What if the applet's real purpose is to maintain client-side state for a web application? And what if it can do this by using an interesting classloader trick to allow that state to survive the Applet.destroy() method? Open up the definition of what an applet is, does, and can be, and you might find some surprising functionality.

This is the premise of today's Feature Article, Track Conversation State on the Client using Applets . In it, Ganesh Ram Santhanam shows how exploiting this trait of the Java Plug-In allows an applet to maintain client-side state and provide it to your webapp's JavaScript code.

In Java Today:
the ME Application Developers Project within the Java Mobile & Embedded Community is solely dedicated to the business of application and content development on mobile and embedded Java platforms. It contains a gallery of ME applications, and popular links to help, and can help you find the resources you need -- demos, source code, tools, and tips -- and learn how to connect with the community.

A new article at Artima, Lexical Scope of Java Inner Classes and Closures, is comprised mostly of a big table, one which compares and contrasts an intresting and important concept in the debate over the various closure proposals for JDK 7. "One of the key differences between the different Java inner class and closure proposals is the lexical scope of names, this blog compares the scoping of the major proposals (CICE + ARM, C3S, FCM + JCA, and BGGA in both its forms). The order in the comparison table[....] from left to right, is how large a change is made to Java."

ONJava blogger Timothy M. O'Brien continues his series on digging into JavaFX with a pair of updates in JavaFX: New WYSIWYG Editor + Ramani Updates on License. "Think we have to wait a few years for good tool support in JavaFX? Think again, there’s a pretty capable tool from Reportmill Software."

In today's Weblogs, Eamonn McManus has help with Making a JMX connection with a timeout: "One question I encounter frequently about the JMX Remote API is
how to reduce the time taken to notice that a remote machine is
dead when making a connection to it. The default timeout is
typically a couple of minutes! Here's one way to do it."

Masoud Kalali looks at GlassFish version 2 monitoring capabilities: "GlassFish version 2 provides a good monitoring service which allows developers to monitor all application server related activities in order to improve their applications or hunt bugs."

Finally, Vivek Pandey has his JavaOne wrap-up: "It took me so long to recover from JavaOne! Well not really, right after JavaOne got pulled into various things and could never get to it.
Overall, it was great to meet JAX-WS RI users and hear their feedback."

In today's Forums, trejkaz says

JTree should select on right-click: "It's a shame that JTree doesn't select when the right mouse button is clicked. I know the reasons why this was changed, and I even somewhat agree with them, but what it's caused is a fail because Swing's "Windows look and feel" no longer feels right. In native Windows apps, right-clicking on a tree item always (I am yet to see an exception to this) selects before showing the popup/ I'm not sure what other systems do but at least the Windows L&F should be modified such that before displaying the popup, it selects the node which was clicked unless it was already selected."

andrewdavison62 points to a useful JOGL tutorial in JOGL-ES Ch. 3 Online: A Particle System: ">I've just added a third chapter on JOGL-ES (JSR-239) to the Pro Java 6 3D Game Development website at It's called "JOGL-ES Chapter 3. A Particle System". This chapter's about how to build a particle system using point sprites."

Current and upcoming Java

Registered users can submit event listings for the href=""> Events Page using our href="">events submission form.
All submissions go through an editorial review before being posted to the

Archives and Subscriptions: This blog is delivered weekdays as
the Java
Today RSS feed
. Also, once this page is no longer featured as the
front page of it will be
archived along with other past issues in the href=""> Archive.

When is an applet not an applet?