Linked by Eugenia Loli on Sun 22nd Oct 2006 18:12 UTC
Java Mustang is galloping into town. Also known as Java SE 6, Sun's latest incarnation of the Java 2 platform should arrive in its first non-beta release by the time you read this article. Jeff Friesen shows you why the many new features (from console I/O and access permissions control methods, to the system tray API and table sorting and filtering) that you now get to play with make Mustang an interesting release.
Order by: Score:
Good news
by ValiantSoul on Sun 22nd Oct 2006 18:18 UTC
ValiantSoul
Member since:
2005-07-20

Its great that its just about to be released as I've seen many speed improvements compared to 5, however I wonder - when will it be available to Mac OS X...

Reply Score: 2

RE: Good news
by MysterMask on Sun 22nd Oct 2006 18:41 UTC in reply to "Good news"
MysterMask Member since:
2005-07-12

however I wonder - when will it be available to Mac OS X...

Apple is currently at J2SE version 1.6.0_b88 (Developer Preview 6 of Java SE 6 Release 1).
(looks like they will be faster than with previous Java releases ;-)

Reply Score: 1

RE: Good news
by ahmetaa on Sun 22nd Oct 2006 19:10 UTC in reply to "Good news"
ahmetaa Member since:
2005-07-06

i think they can even make a simultaneous 4 platform launch for JDK 6 (mustang). only the Intel Macs tough.

Reply Score: 1

RE: Good news
by fjleon on Mon 23rd Oct 2006 17:29 UTC in reply to "Good news"
fjleon Member since:
2006-05-02

It will come on Leopard.

Reply Score: 1

Great Release!
by kap1 on Sun 22nd Oct 2006 18:28 UTC
kap1
Member since:
2006-05-12

this is probably one of the best java releases in a long time, this version has serious speed increases all over, and finally they've put effort into making it much more better for desktop users.

however unlike the articles states java non-beta is still not out.

Edited 2006-10-22 18:31

Reply Score: 2

But will it look good?
by Haicube on Sun 22nd Oct 2006 18:38 UTC
Haicube
Member since:
2005-08-06

Better performance is more than welcome. I can imagine quite a few people who would appreciate that more than a lot.

However, I'm concerned about bells n whistles here. Surely it's good what is written in the desktop integration part of the article, but will they manage to make apps look good?

Launching a Java App in Windows for instance gets all greyish and ugly and surely don't remind of anything else in Windows. Will this "appearance issue" change? I for one surely hope so.

Reply Score: 2

RE: But will it look good?
by tmack on Sun 22nd Oct 2006 18:43 UTC in reply to "But will it look good?"
tmack Member since:
2006-04-11

Yes, the new version of Java/Swing uses native widgets on Windows.

So, a Swing application will fit in perfectly with all of the other applications on that platform. This is similar to how the Mac OS X version of Java/Swing fits in perfectly with other applications.

They have also made great improvements on Linux with GTK+, although I am not sure if it is emulated or if they are using native widgets there also.

Edited 2006-10-22 18:43

Reply Score: 3

RE[2]: But will it look good?
by someone on Mon 23rd Oct 2006 02:32 UTC in reply to "RE: But will it look good?"
someone Member since:
2006-01-12

Yes, the new version of Java/Swing uses native widgets on Windows.

No, it doesn't. The whole point about Swing is that it provides a set of managed (written in Java), cross-platform widgets that can be skinned to match the look of the native platform.

This being said, both the win32 LnF and the GTK LnF have improved significantly in Java 6 and both make use of the native theme engine to draw the widgets. This, along with the new Desktop API, improvements in font rendering and other items, should give a great boost to Java on the Desktop.

Reply Score: 2

v RE[3]: But will it look good?
by tmack on Mon 23rd Oct 2006 02:47 UTC in reply to "RE[2]: But will it look good?"
RE[4]: But will it look good?
by someone on Mon 23rd Oct 2006 03:08 UTC in reply to "RE[3]: But will it look good?"
someone Member since:
2006-01-12

"new version of Java/Swing uses native widgets on Windows"

"use of the native theme engine to draw the widgets"

Excuse me, you pedant.


There is a good deal of difference between a native widget and a Swing widget drawn with the native theme engine. One must be freed by hand, the other will be automatically freed by the GC. Also, there is a great deal of difference when it comes to portability (just ask any SWT user) and accessibility (Java applications won't make use of the native accessibility framework) among other things.

Edited 2006-10-23 03:12

Reply Score: 3

RE: But will it look good?
by kap1 on Sun 22nd Oct 2006 18:47 UTC in reply to "But will it look good?"
kap1 Member since:
2006-05-12

"but will they manage to make apps look good?"

The apps look great exactly like native apps, you can't tell they are java apps.

Reply Score: 1

v RE[2]: But will it look good?
by hurdboy on Sun 22nd Oct 2006 19:33 UTC in reply to "RE: But will it look good?"
RE[3]: But will it look good?
by TownDrunk on Sun 22nd Oct 2006 19:43 UTC in reply to "RE[2]: But will it look good?"
TownDrunk Member since:
2005-11-28

They still look like non-native apps, IMO.

Which apps in Java 6 don't look native? I guessing you're just full of shit.

What sucks in the java language? Seems pretty nice to me but since you are not specific about any of your comments I assume you just want to spread fud. In other words, you're comments don't mean shit.

Reply Score: 1

RE[4]: But will it look good?
by tmack on Sun 22nd Oct 2006 19:46 UTC in reply to "RE[3]: But will it look good?"
tmack Member since:
2006-04-11

Yeah, Java is a pretty decent language for writing most applications. There are certainly places it is less than optimal but it is still a good all around language.

This guy is a tool.

He'll probably go on about the virtues of C# over Java next, haha.

Edited 2006-10-22 19:49

Reply Score: 0

v RE[4]: But will it look good?
by hurdboy on Sun 22nd Oct 2006 20:31 UTC in reply to "RE[3]: But will it look good?"
RE[5]: But will it look good?
by tmack on Sun 22nd Oct 2006 20:36 UTC in reply to "RE[4]: But will it look good?"
tmack Member since:
2006-04-11

"The vast array of semi-standardized libraries, mostly. Shitty documentation doesn't help that, either."

You've obviously never used Java have you?

Java doesn't have issues with either of these. Java has one of the better standard libraries and really some of the best tools for creating/maintain/generating documentation.

You just described C/C++ (which I should add, are also good programming languages).

Reply Score: 5

RE[5]: But will it look good?
by sard on Sun 22nd Oct 2006 20:45 UTC in reply to "RE[4]: But will it look good?"
sard Member since:
2005-11-16

If the Look and Feel is set to native then there's virtually no difference.

I'll agree the libraries aren't perfect but you'll be hard pushed to find anything better in other languages.

At least in Java you get libraries written specifically for Java taking advantage of its features. Everyone else has to put up with badly ported C/C++ libraries, or worse still actual C/C++ libraries ;-)

There's no great conspiracy behind Java's success, it actually does make life much easier for a great many prgrammers.

Reply Score: 5

RE[6]: But will it look good?
by tyrione on Mon 23rd Oct 2006 07:07 UTC in reply to "RE[5]: But will it look good?"
tyrione Member since:
2005-11-21


If the Look and Feel is set to native then there's virtually no difference.

I'll agree the libraries aren't perfect but you'll be hard pushed to find anything better in other languages.

At least in Java you get libraries written specifically for Java taking advantage of its features. Everyone else has to put up with badly ported C/C++ libraries, or worse still actual C/C++ libraries ;-)

There's no great conspiracy behind Java's success, it actually does make life much easier for a great many prgrammers.


OS X Cocoa Frameworks are an example of a language married with extensive frameworks that were designed to leverage the strengths of it's native language, ObjC, not to mention enjoy C/C++ within it.

Reply Score: 1

RE[6]: But will it look good?
by someone on Mon 23rd Oct 2006 11:48 UTC in reply to "RE[5]: But will it look good?"
someone Member since:
2006-01-12

I'll agree the libraries aren't perfect but you'll be hard pushed to find anything better in other languages.

Besides, you do have alternative frameworks, lots of them: For J2EE, just look up any of the Apache projects. Those are just offerings from the ASF. There are other commercial and OSS offerings, such as WebObjects. There are many alternative frameworks for the Desktop as well, such as the Eclipse and NetBeans RCPs.

Reply Score: 1

RE[5]: But will it look good?
by Matzon on Sun 22nd Oct 2006 20:46 UTC in reply to "RE[4]: But will it look good?"
Matzon Member since:
2005-07-06

"The ones in the screenshot he just posted there. Did you RTFA? "
the ones in the articale were not using SystemLookAndFeel. Just because you're clueless doesn't make you right.

Reply Score: 5

RE[6]: But will it look good?
by milkycow on Mon 23rd Oct 2006 00:05 UTC in reply to "RE[5]: But will it look good?"
milkycow Member since:
2006-04-04

I just tried setting the lnf to SystemLookAndFeel in a Swing program I had written, turns out SystemLookAndFeel is Metal by default on Linux. At least that's what System.out.println(UIManager.getSystemLookAndFeelClassName()); tells me. (not using Gnome)

Reply Score: 1

RE[7]: But will it look good?
by ahmetaa on Mon 23rd Oct 2006 00:14 UTC in reply to "RE[6]: But will it look good?"
ahmetaa Member since:
2005-07-06

AFAIK, default is always Ocean (Metal replacement of Java5). You need a line of code to change it.

Reply Score: 1

RE[5]: But will it look good?
by werpu on Mon 23rd Oct 2006 08:56 UTC in reply to "RE[4]: But will it look good?"
werpu Member since:
2006-01-18

>The vast array of semi-standardized libraries, mostly.
Ahem one of the best libs there is, and fully standardized, not semi, sorry... but every function there is in the jre is covered by unit tests!

>Shitty documentation doesn't help that, either.

Ahem is it so hard to go to java.sun.com and to read the array of tutorial books published for free, and have been since day 1. Is it so hard, afterwards to look into the javadocs online and offline. In fact the excellent documentation is one of the reasons why java took off!

Reply Score: 2

RE[3]: But will it look good?
by Sodki on Sun 22nd Oct 2006 20:06 UTC in reply to "RE[2]: But will it look good?"
Sodki Member since:
2005-11-10

And, despite the speed increases, I'm sure they didn't do anything to make programming in Java suck less. I've gotten to the point where I'd rather bag groceries than write applications in Java.

I feel your pain.

Reply Score: 2

v RE[4]: But will it look good?
by tmack on Sun 22nd Oct 2006 20:08 UTC in reply to "RE[3]: But will it look good?"
RE[2]: But will it look good?
by DittoBox on Sun 22nd Oct 2006 20:06 UTC in reply to "RE: But will it look good?"
DittoBox Member since:
2005-07-08

Does it render fonts using the windows font rendering stuff? I hate non-cleartype'd fonts. Nothing looks more out of place when your fonts are all blocky and ugly.

Reply Score: 2

RE[3]: But will it look good?
by tmack on Sun 22nd Oct 2006 20:10 UTC in reply to "RE[2]: But will it look good?"
tmack Member since:
2006-04-11

It has its own font antialiasing/aliasing technology, AFAIK.

However, when you use it, you can't tell the difference.

But gone is the horrible Java fonts of the past, that's for sure.

Reply Score: 4

RE[2]: But will it look good?
by someone on Mon 23rd Oct 2006 02:46 UTC in reply to "But will it look good?"
someone Member since:
2006-01-12

Launching a Java App in Windows for instance gets all greyish and ugly and surely don't remind of anything else in Windows. Will this "appearance issue" change? I for one surely hope so.

It depends on which Look and Feel you use. LnFs like WinLaF and Quaqua provide very native looks to Java applications even under Java 5.

It's just very sad that most Java developers don't take advantage of this. Much like how many Java developers leave heavy processing on the event dispatch thread, make the application unresponsive.

Swing uses Java 2D, which is quite fast and can even be hardware accelerated through OGL or D3D. The problem lie in how you design your application.

Reply Score: 2

Windows 98???
by TownDrunk on Sun 22nd Oct 2006 19:47 UTC
TownDrunk
Member since:
2005-11-28

I developed and tested this article’s Java applications using the second beta release of Java SE 6 (build 86). Windows 98 SE was the underlying platform.

Does anyone else find this add that the author is still using Windows 98 SE? Seems like more people would want to know how Java 6 performs on Windows XP or even Vista.

Reply Score: 5

RE: Windows 98???
by sigzero on Mon 23rd Oct 2006 14:01 UTC in reply to "Windows 98???"
sigzero Member since:
2006-01-03

Odd? A little. But kind of cool that is *does* run on Windows 98. Although it is the kind of "Cool! Someone still runs Windows 98?" type of thought.

Reply Score: 1

RE: Windows 98???
by fjleon on Mon 23rd Oct 2006 17:31 UTC in reply to "Windows 98???"
fjleon Member since:
2006-05-02

OTOH, this proves that java's compatibility is great, even under an 8 year old operating system.

Reply Score: 1

Mustang
by santana on Sun 22nd Oct 2006 21:41 UTC
santana
Member since:
2006-10-22

...is shaping up to be a great release. Btw, beta2 is quite old build, b88, and JSE6 is on b103 now. If my memory serves me well, there were some important optimizations even after beta2.

On look and feel, yes it is using native widgets painters, and you will have to have a veeeery good eye to see any difference. Works great on Vista too. GTK is still not there yet, few bugs plus a little bit slower, but actually much better than before.

Performance is extremely good now. Even on Linux, especially with (now practically bug and trouble free) OpenGL rendering pipeline.

AA, including subpixel AA is supported on all platforms, and it adjusts itself depending on the desktop preferences (although one can switch them on even on platforms that do not support AA, like on Win200).

Unstandardized libraries? WTF?

Anyway, a great release of JSE, and a great intro for things to come (open sourcing the beast).

Reply Score: 4

Improved font rendering
by siimo on Sun 22nd Oct 2006 23:11 UTC
siimo
Member since:
2006-06-22

I for one welcome the new enhanced font rendering that supports clear type and don't make Java swing stick out like a sore thumb

Reply Score: 3

Great!
by situation on Mon 23rd Oct 2006 04:59 UTC
situation
Member since:
2006-01-10

Been following the beta releases for a while now, so I'm really happy to see Java continuing to improve.

Reply Score: 2

Out already??
by zambizzi on Mon 23rd Oct 2006 06:31 UTC
zambizzi
Member since:
2006-04-23

I thought JDK 6.0 was due to "ship" on the 30th? Was this article written in the future? Or, was it written recently and published too soon...

Honestly, what's up w/ that?

Anyhow, Java 6 looks to be fantastic. Java 5 was a huge improvement in terms of performance and Swing cosmetics...and here we are just a couple years later w/ another great leap forward for Java.

I can't wait to crack open the final Netbeans 5.5 running on JDK 6.0 on the 30th...what a month for great Java releases!

Reply Score: 2

Licence
by leonel on Mon 23rd Oct 2006 13:12 UTC
leonel
Member since:
2006-03-02

Does anyone knows under what kind of licence will be released JDK6

Reply Score: 1

RE: Licence
by santana on Mon 23rd Oct 2006 19:24 UTC in reply to "Licence"
santana Member since:
2006-10-22

>Does anyone knows under what kind of licence will >be released JDK6

Yep, I know ;)

Same old, same old. JDK6 is the last one under old terms (if you neglect the fact that JDK6 actually has some new terms, like JRL for sourcecode and that distribution thingy that should make life of Linux providers easier, don't know the exact details or success yet, sorry). The (opensource) fun starts with JDK7. Sun guys are deep into fun of choosing the license, process, version control system etc. First opensource bits should be out, well, any time now ;) (They've said "October" for compiler and HotSpot, I'm really not sure that they are ready yet, but, it's comming, it's comming ;) )

Edited 2006-10-23 19:40

Reply Score: 1

sametime 7.5
by kwanbis on Mon 23rd Oct 2006 16:08 UTC
kwanbis
Member since:
2005-07-06

i'm using Lotus Sametime 7.5, build with java+eclipse, and it looks perfectly native to Win 2000.

Reply Score: 1

RE: sametime 7.5
by someone on Mon 23rd Oct 2006 17:37 UTC in reply to "sametime 7.5"
someone Member since:
2006-01-12

SWT makes use of native widgets (not managed widgets skinned with the native theme), so of course it would look perfectly native.

Edited 2006-10-23 17:37

Reply Score: 1