Java desktop links of the week, April 27

Given my delay in posting last weeks links of the weeks, there has been a flow-on this week, with the number of links down from the usual volume. Despite this, there are a number of interesting posts that all readers should be interested in. Have a great week everyone.

General

Swing

JavaFX

Pivot

Java desktop links of the week, April 22

Sorry for the delay to this weeks Java desktops links – I have been extra busy and this weekly post takes surprisingly long to compile. Regardless, we’re here now, and that’s the main thing 🙂

Swing

JavaFX

That’s it for another week. Again, sorry for the delays – it’s was difficult to find the hour or so it takes to publish this weekly post this week. Have a great week (what’s left of it) 🙂

Java desktop links of the week, April 13

Welcome to the very first Easter edition of Java desktop links of the week 🙂

I hope you all had a great easter, had a chance to spend time with family, and didn’t eat too much chocolate. Perhaps because of the short week, there has been far less news this week than normal. Let’s get started:

Swing

JavaFX

That’s it for another week. Have a great week and keep up the hard work in whatever you’re passionate about! 🙂

Using Google Collections with ProGuard

Just a short post to anyone who uses Google Collections in their applications and ProGuard to obfuscate their code: it won’t work because of the way Google Collections has been architected since around the 1.0-rc release.

To get around this, simply include the following in your ProGuard config script:
-dontskipnonpubliclibraryclasses

To quote the Proguard manual , this instruction:

Specifies not to ignore non-public library classes. By default, non-public library classes are skipped while parsing library jars. The classes are typically not relevant during processing, since they don’t affect the actual program code in the input jars. Ignoring them reduces memory usage and processing time. Occasionally, a badly designed library may contain a non-public library class that is extended/implemented by a public library class. If the latter library class in turn is extended/implemented by a program class, ProGuard will complain that it can’t find the non-public library class, which it had ignored during parsing. This option will overcome that problem, at the cost of greater memory usage and longer processing time.

Once this is done, the build should proceed as normal. In some circumstances (such as mine), your build may run out of memory. In this case, up the memory to the build script by adding the following VM arguments:
-Xms512m -Xmx1024m

Of course, you can vary that based on the memory requirements your build needs.

Hope that helps!

Java desktop links of the week, April 6

Here are your Java desktop links of the week. It’s been an interesting week to be a Java developer, given the rumours swirling around a potential acquisition of Sun as soon as this week. Who knows, next weeks post might be SWT links of the week 😉

Regardless of what happens, have a great week, and don’t work too hard.

General

Swing

JavaFX

Groovy