Getting over grids…

For a chance, something different like Table Layout can be tried to spice up UI development. Just adding some extra sugar wrapper layer over it, and easy UI layout definition is served. Ok, practise is always naturally different… For example, TableLayout does not answer question of aligning layout between widgets, like two composite widgets in…

Read more

Hectic events in life

And to counter-balance it, few nice bits for java references: Swing Components JXTreeTable Misc links Client Java Pondetring over Serialization Optimization: Serialization JSerial Fast Object Serialization uka.transport Fast Serialization Unsafe: neat, eh? Not so, and actually it doesn’t work (SecurityException). Unsafe exception Unsafe memory

Read more

Obfuscation safe reflection

Q: How to ensure that code can be obfuscated, but reflection API benefits for action invoking could be used? A: In JDK 5.0 solution exists, just use annotations. So how to do such. 1) Define appropriate annotation [code lang=”java”] @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Call { int value(); } [/code] 2) Define reflection action to use…

Read more