Skip to main content

Lightning Strikes Not Once But Twice

Posted by editor on April 24, 2006 at 10:41 AM PDT


A double dose of Brazilian Java

Seriously, I didn't set out to do a "stuff from Brazil" theme in the Projects and Communities section today. Roger Brinkley had noted the new project for a Brazilian Portugese localization of the JDK as a possible front page item, and while I was digging for other items for the page, I came across the contest results on the NetBeans.org page and liked the story, mostly because of the idea of the clever plugin to bind mouse gestures to actions. That's an interesting form of human-computer interaction I hadn't thought about since the last time I deleted text on a Newton with a "zorro slash", although now that I think about it, there's also a new video game called Okami, in which you use your controller like a calligraphy brush to draw figures and achieve various magical effects. At any rate, the idea of greater use of gestures appeals to me -- I'd love to, say, save off text or URL not with a careful highlight-and-right-click-menu-item but maybe by just circling the target text with my mouse.

Anyways, it was only when I'd put both items into CS that I realized they were both Brazilian in nature. I think that's pretty cool because instead of laboring to contrive some sort of "Brazil Day" theme, it means there's so much Java development and innovation happening there that the two items I picked for the page would just happen to be from in Brazil. Obviously, that speaks volumes about just how hot the Java is in that country.


Elaborating on these Brazilian items in Projects and
Communities
,
Roger Brinkley and Bruno Souza have announced the Brazilian Community Translation of the Java API Specification. The project, in the works for a year, will tanslate the JDK 5 APIs and Guides into Brazilian Portuguese. "It is believed that by translating this specification we will remove a barrier to entry for new software developers in Brazil, thus growing the Java Community."

The winners of "Desafio NetBeans" -- "NetBeans Challenge" in Portugese -- were announced at NetBeans Day Sao Paulo. First place in this plugin-writing contest went to Wagner Bastos' RSI Prevention Module, and second place to Mouse Gestures Module, a team effort that allows invocation of an action by a specific mouse gesture, such as drawing a shape while right-clicking.


This week's Spotlight is on the Direct Web Remoting (DWR) project, which recently reached milestone 1 of version 2.0. DWR is popular for providing "easy AJAX for Java" - making it simple to call server-side Java from client-side JavaScript by eliminating almost all boilerplate code. The new version will introduce the concept of "reverse AJAX", in which server-side Java can asynchronously call client-side JavaScript, making interactive applications much easier.


In today's Forums,
golovnin has some AWT advice in
Re: Relation between java.awt.Toolkit and java.awt.GraphicsConfiguration:
"Try to set the system property 'awt.toolkit' to the name of your class, e.g.: java -Dawt.toolkit=MyToolkit MySwingApplication The method java.awt.Toolkit#getDefaultToolkit() will create and return an instance of your class. You class must have a public no-arg constructor. Hope this helps."

swpalmer asks
Will JFileChooser ever get fixed on Windows?
"I'm getting a LOT of pressure at work to write my own JNI code to access the native Windows file dialogs because the Swing implementation is so poor. Our customers complain, other developer's complain, our sales people complain.. etc.. So now I'm complaining here. There are several open bugs for this... and they are all old. Some have been closed without being resolved, but many are still open. I appreciate some of the performance improvements I've seen recently with Mustang... they help a bit.. but there is so much more to do."


For everyone who's ever blocked forever on network problems or server problem in RMI, Neil O'Toole has a solution in today's Weblogs. In

RMI Interruptus! - Interrupting RMI method calls, he asks:
"Ever wanted to interrupt an RMI call that's taking too long? The user clicks the 'Cancel' button, but your RMI thread is blocked in IO, and you want that thread back! Unfortunately there's nothing you can do (until now that is!). "

In
Confessions of a noob..., java.net intern Sonya Barry asks (and answers) the question
"What am I doing here anyway?"

Konstantin I. Boudnik wants to know what's up in the micro space in
Smaller Java, but bigger market?:
"The post on recent CTIA event: why didn't we see a lot of Java producers presented? I'm kinda wondering what is the message JavaME community will be getting by this de-marsh?"


In Also in
Java Today
,
in the interview Gosling Outlines the Trouble With AJAX, the founder of Java talks about the challenges of developing AJAX tools for use in server-side frameworks. "Creating them is extremely hard. Not because programming JavaScript is hard, but because all these flavors of JavaScript are ever so slightly different. You have to build your components so that they're adaptable to all the different browsers that you care about. And you have to figure out how to test them. None of the browsers has decent debugging hooks. We could build little things for people where they could test these components." He also talks about Sun's successes and blunders in the system software field.

Beginning and intermediate developers may have heard of object pooling (keeping reusable objects around in a "pool" instead of frequently creating and destroying objects) without having had an opportunity to put the concept to work. It's critically important in database work, given the expense of creating and destroying database connections, and Kunal Jaggi walks through an application of the idea in Database Connection Pooling with Tomcat, in which he shows how to use JNDI to allow your components to find and use the pool.


In today's java.net
News Headlines
:

Registered users can submit news items for the href="http://today.java.net/today/news/">java.net News Page using our
news submission
form
. All submissions go through an editorial review before being
posted to the site. You can also subscribe to the href="http://today.java.net/pub/q/news_rss?x-ver=1.0">java.net News RSS
feed.


Current and upcoming Java
Events
:

Registered users can submit event listings for the href="http://www.java.net/events">java.net Events Page using our href="http://today.java.net/cs/user/create/e">events submission form.
All submissions go through an editorial review before being posted to the
site.


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 java.net it will be
archived along with other past issues in the href="http://today.java.net/today/archive/">java.net Archive.

A double dose of Brazilian Java