The Planetarium

           Java for all clients: Java SE, Java ME, JavaFX and JavaCard

JavaFX Roundup

Filed under: javafx on Friday Aug 28, 2009

From this detailed article about the new mixin feature in the language that replaces the potentially slow multiple inheritence, to a episode three of a continuing series about a new MVC based framework for building form based applications in JavaFX, there's been lots to say about JavaFX in the last week or so.

A couple of new games zoomed into view. As have some deeper reviews of JavaFX technology from those who have actually rolled up their sleeves and used it. Leading perhaps, to a remarkably precient (yet incomplete!) prediction of what is to come in the next version.

See you at Devoxx 09 ?

Filed under: devoxx javafx jdk7 on Wednesday Aug 26, 2009

The Devoxx conference is something of a shapeshifter. One of the 'european JavaOnes', it grew out of the Belgian JUG, has undergone a number of name changes, and now has shifted up a month, starting this year on November 16th instead of its early December slot.

One thing has remained consistent though: its a well-attended conference with a lot of up to date and high quality technical content.

For anyone interested in JDK 7, or JavaFX you should hop online and get planning: many of the Sun engineers involved in those projects are already signed up to speak.

Under the hood with Garbage First

Filed under: jdk7 on Tuesday Aug 25, 2009

There's an interesting article over at Dr Dobbs about the new Garbage First collector, scheduled for prime time in JDK 7, and currently available to try out as an optional collector in the Java SE 6 update releases. Published experiences with this new memory management technique for Java are rare, though some have had good results.

The article examines in some detail the algorithms used in this collector, and hints at how they achieve the mostly prescribable pause limits. For those of you who don't often lift up the hood of the car you're driving you may need to refresh your general background on garbage collectors, their different flavors and algorithms.

And for those of you just interested in how to make it work, the article has a nice section on the knobs and levers you can pull to tune it for your own applications.

Deep Dive on JDK 7

Filed under: jdk7 on Friday Aug 21, 2009

The Janitor joined Ed Ort for a Deep Dive on JDK 7, check it out here. Really given how much is going into JDK 7, its perhaps more of a flyover and swoop, but, if you need to catch up with the plan, take a look.

JavaFX: Widgets galore

Filed under: javafx on Thursday Aug 20, 2009

If you feel like publicizing your programming prowess and you missed the JavaFX developer challenge, you should take a look at the WidgetFX contest.

WidgetFX is a container for desktop widgets written in JavaFX and is itself written all in JavaFX. And is already filling up with a number of useful widgets. From the obligatory clocks, calendars, post-it notes, to news readers, mailers, bookmark holders and twitter clients.

Or you might just like to put them all on your desktop.

New API for Constraint Programming

Filed under: java javase on Wednesday Aug 19, 2009

Constraint programming is a kind of declarative programming. Specifically, where you say what conditions constitute the solution of problem, rather than the laying out steps or algorithms by which you get to it. Deng Xiaoping had a saying for it. A bit like assessing weather conditions for sailing, or evaluating economic indicators when deciding central bank policy, these conditions come in the form of restrictions on the interrelationships of a carefully selected set of variables which model the computing problem.

There are various Java libraries to help write applications that use this idiom, like Choco, or Constrainer, to name but two, and there's growing interest in this style of computing.

So it was good to see yesterday the JCP give the go ahead to develop a standard Java API for constraint programming.

JDK 7: Shaped and translucent windows

Filed under: jdk7 on Tuesday Aug 18, 2009

Just as life doesn't always fit neatly into a box, neither does everything you want to show on screen. Wanting to see behind what you're looking at is really just part of the human condition, and perhaps why the use of translucency in GUIs has become so popular.

The ability to create shaped and translucent windows was first released in Java SE 6u10, but you had to use a private API to do so. With the forward port of all the Java SE 6u10 features into the JDK 7 codebase, now you have a public API to do this.

This new article gives a 100% translucent picture of the capbilities, and is a good companion to this older, but recently updated technical article.

A question of JavaFX

Filed under: javafx on Monday Aug 17, 2009

Given that JavaFX has already evolved 'from trainwreck to good' in 9 months, isn't it time you made a reservation for a highly recommended JavaFX book or put an online JavaFX learning course on the menu ?

Java ME: Smart browsing on dumb phones

Filed under: javame on Friday Aug 14, 2009

Think you need a $martphone to browse the web ?

The intriguing BOLT browser should get you to think again (thanks to arch-blogger Hinkmond for the heads up). With desktop-like features like split-screen browsing, feed support, saving web pages, streaming video and accompanied by excellent reviews of its speed even on the most basic phones, how can it do it when all the client requires is the most basic of Java ME APIs: MIDP 2.0, rather than the fancier MSA 2 shipping on the newer Java ME phones ?

The client part (which Bitstream claims has long passed the millionth download mark) of the BOLT browser is just half the story: the heavy lifting is handled on the server through which renders and compresses the data (23:1, if you believe them) ready to squirt back to the phone.

And BOLT isn't the only of this new breed of browser.

JavaFX: A Musical Gathering

Filed under: javafx on Wednesday Aug 12, 2009

There's definitely an arc in the adoption of a new technology. From skepticism, to release, the odd stumble, to the evidence of more widespread experimentation, to the first commercial applications.

Indaba Music (from the Zulu indaba:  'gathering') is a collaborative music site, and debuts one of the first commerical applications of JavaFX: the Indaba music console. Currently in alpha, it gives Apple's GarageBand a run for its money, with the ability to lay down multiple music tracks, from prerecorded clips, to those of your own making, to those your friends gave you. Then the fun starts when you start applying musical effects to your composition, and exporting back to your friends.

The Planetarium marks the arrival what is a truly capable and polished online JavaFX media manipulation application, with a special composition which you can download here. (Vocals courtesy of the Janitor).

You almost certainly heard that you can drag an applet out of its web page, so long as the version of Java running it is current enough.

But did you know that you can change the applet as it's being dragged out, or put back in ? That you can change the appearance of the applet according to whether the version of Java running it supports the draggable feature ? That you don't have to have the users hold down the alt key to drag it out ?

If you didn't, check out this tech tip from Javafx.com.

In a physical store, the attractiveness of the shelf display masks what is usually a highly complex set of processes by which the products arrive on the shelves. How optimized these processes are can make or break a store.

Peeking into the backend Warehouse of the Java Store, Bernard Traversant walks you through the process by which Java and JavaFX developers can submit their apps. From attaching all sorts of descriptive information about the application that the store will need (like export licenses, platform version) or that the shelf display will need (description of the application, icons, and, ultimately, the price you set) to the requirement of packaging the application as a single JAR (which NetBeans 6.7.1 handily meets) its all covered here.

For anyone interested in using the JVM to run a language other than Java, and even for those interested in how it runs the Java language, and definitely those interested in language development, the annual JVM Language Summit held in September has become the primary place to be.

You get the idea by taking a look at some of the talks from last years summit: From Clojure, PHP on the JVM, the vicissitudes of running Ruby on the JVM, to Closures on the JVM. And you will also see that you will be hard pressed to find more expert speakers in these subject areas in the industry.

And this year the format has changed to include more interactive workshops, as well as the traditional talks, to spread the goodness even more effectively.

If you're hesitating: stop it: John likes to keep this summit small and focussed, usually under 100 participants. Sign up here.

Java ME: LWUIT Upgrades

Filed under: javame lwuit on Thursday Aug 06, 2009

For those developers working on apps for today's feature phones, the Java Swing-inspiredLWUIT has long been a good option for making good looking UIs such as these. And its just part of the all-devices-in-one Java ME SDK 3.0.

Last month LWUIT made its 1.2 release with a raft of new features, paying particular attention to a revamped way of inserting style into components and backgrounds, and a newly online designer tool (seems to be all the rage these days).

And, as an open source project, others appear to be doing it with LWUIT too: its been ported to a new mini-Java ME VM called Jelatine, and can be upgraded to display text tfel-ot-thgir.

JavaFX and the summer brain drain

Filed under: javafx on Wednesday Aug 05, 2009

Summer holidays ain't what they used to be, especially when parents start fretting about this kind of thing.

Earlier this summer, the Janitor and some of the JavaFX team got together with some of those smart folks over at FreshBrain to sit down and figure out how JavaFX could add to their online summer technology camp for teenagers.

So its great to see FreshBrain's new course on JavaFX: expect to see a wave of New Moon-themed media players in time for the fall term.