Simplifying a Swing Application for Dolphin Filed under:
javase7
You heard about the two new Swing JSRs, each of which aim to make
developing Swing applications easier, right ?
The Beans
Binding JSR promises to simplify that large chunk of your Swing
application concerned with hooking up a GUI component to the data it
represents. This code is always concerned with keeping the data and the
GUI in sync ("do I really have that
little money in my checking account ?"), and usually its doing
type conversion ("uh, my paycheck is
in dollars, not pennies thankyou very much") and validation ("Error, you have entered an amount
exceeding your current balance. Please rethink your plan to chuck it
all in and sail round the world") as well. Scott's
blog has much more on this new work.
Hans' Swing Application Framework
JSR is aiming to provide standard API support for some of those
chunks of code that keep popping their heads up in most all Swing
applications, you know, the part that manages user preferences, or that
remembers application specific state across sessions, or that preps
things like databases on startup and cleans such things up on exit.
Ease of development has been a big deal for Java EE. In case you had
your head in
the sand, Java EE 5
is done, blossoming with a newly revamped programming model which
focuses on ease of development. (Check out the before and afters from
JavaOne - slides).
There are of course as many opinions on ease of development as there
are working styles. And working style can be a fraught area for us
developers. We have on occasion been known to lose
our cool in discussions thereof, particularly when personal
styles become a public matter. When engaged (or occasionally enraged) in the
activity of developing an application or system, our process is often very interior, solitary and introverted. While what
we produce at the end can be a thing of functional or even aesthetic
beauty, comparatively little of the process by which we got there
remains. Were we sculptors, the floors of our studios would be waist
deep with scrapings, chippings and discarded previous efforts. Were we
musicians, we might laugh up our sleeves at us developers who think
that 'doing our thing' in
pairs is an extreme measure, or puzzle at the idea of an orchestra of soloists.
My only point being that ease of development is often an electric issue. However it appears
that the main activities of development: learning, prototyping,
designing, developing, enhancing and maintaining, benefit a majority of
developers when they are kept brief and simple. That happens best when
technology takes on some of the load, respectful of our attachment to
style, for us.
I have high hopes these new JSRs will take some of the load of
developing Swing applications for Java SE 7 'Dolphin', making the
applications themselves shorter and simpler. And in a style that I hope
will work for most everyone, not least because Scott and Hans will be
joined in these efforts by some really expertluminaries of the Swing
community.
So as the last orange backpack leaves Moscone, we see the end of
another JavaOne. Something odd happens each JavaOne, despite all the
best efforts of the presenters and attendees to control
the messaging, what ends up being memorable takes on a life of its
own as the week progresses. For me, the two stars of the show were both
technical (yay), and were
the activities bringing scripting languages onto Java SE (which I
have talked
about before)
I also sensed people having more fun both at the conference and in
their approach to the technology this year than in past years. Ya, that
for me was the highlight.
And if you see me first at JavaOne
next week, I hope you'll say hello !
I'm almost done getting my talks ready. I am a Visual
Mathemetician so all the work of creating a presentation happens in
my head as I'm drawing the pictures. I find that just as soon the
pictures are just right, the bullet points write themselves.
Today is Wednesday and everything is going great. I just wish I could get the pictures right
:-)
I'll be kicking off the Java SE Platform
track with Mark
on Tuesday
at 2, and I'll be talking about NET2Java and doing crazy
demos with Charles Tuesday at
6.00 in the Sun Presentation Theater.
Therearelotsof
pre-JavaOnetalkreviewblogsandarticlesaround,
so I won't
dilute them with another. And between you and me, I haven't decided
which talks I'm going to attend yet. As in past years
I hope to 'feel it' on the day, equipped just with an open mind and a
shiny new pen.
I'll probably bike down to
Moscone to loiter for NetBeans
Day on Monday. I'll also be at the Mustang Community party, at the
Argent Hotel, Tuesday, 8:30pm, or the JCP party on Wednesday night at
the Argent Hotel at 6.30pm.
NET2Java: Extreme Makeovers for .NET Applications ! Filed under:
net2java
My secret agenda is to translate
every .NET program on the planet
into a Java program. So I'm announcing early access to NET2Java: a new
technology for translating .NET applications into Java
applications that behave the same way. It translates .NET source code
into Java source code.
Stand up and touch your toes. Are you stretching down with your
upper body and arms, or are your feet pushing up from the ground ?
You probably read about our new
boss in software, Rich Green, returning to Sun. He
used to be my mentor, spending time with me at when he was really busy
with other
things. Rich inspired me to see a broader and more
sophisticated perspective of what Sun was doing with Java technology at
the time.
Finding balance is a lesson I continue to learn from my Yoga practice -
the physical balance of some of the standing poses
or arm
balances, the
mental balance of effort and relaxation (you know the challenge if you've ever tried some of them, relaxing while you've been in your dreaded gnarliest pose for ten slow, meditative...contemplative breaths as your body begs for mercy). Or the spatial balance of the
oppositional
forces in a pose. The balance of safety
and risk.
Everyone needs a mentor - whether its someone in a formal program like
Sun has (the rules of which probably Rich and I ought to have been more careful students), or someone nearby you admire and who inspires you.
Someone who helps you balance the daily grind with being inspired to go
do
something you least expect of yourself.
Who's mentoring you ?
Posted by dannycoward
( May 02 2006, 12:04:02 PM PDT )Permalink