Skip to main content

Blog Archive for evanx during October 2006

So today i tried pack200 - and it compresses my jar from 440k to, urm, 110k! OK, so, um, clearly all WebStart jars should be made this way. Some great resources i found in the process were deployment.dev.java.net which has the important links related to WebStart, and "Deployment Tips and Tricks using WebStart and Java Plugin" (JavaOne2006 PDF slides), which shows you how to lazily load your app...
.preJava { font-family: 'courier new', monaco, courier; font-size: 11pt; width: 800px; clear: both; overflow: auto; background-color: #efefef; padding-bottom: 0; padding-bottom: 0.2em; } What We Might Get I understand a bit more now about closures...
Thanks to comments to The Good, The Bad and The Ugly, i was taught that closures have important features, like access to non final variables in scope. This does simplify code as follows (see Event DTs), where otherwise arguments all have to be final, and variables like option can't be local in showConfirmDialog(). public Class EdtHelper {    ...    int option...
In Concise Instance Creation Expressions: Closures without Complexity by Bob Lee, Doug Lea, and Josh Bloch, they propose the following syntax for closures, as a shorthand notation for anonymous classes with a single abstract method type, e.g. Runnable, Comparator and the like.   List<String> stringList = ... ;   Collections.sort(stringList,     ...