Saturday, October 9, 2010

Swiz Framework

I like the way how Christophe Coenraets describes the Swiz Framework below:
At his core, Swiz is a simple inversion of control framework (IoC). Using an IoC framework, the components of your application (for example, Views) don't instantiate or even look up their dependencies (the objects they work with). The framework injects those dependencies when the components are created (hence the term "Dependency Injection" also used to describe this approach). The result is looser coupling and more reusable components. The components managed by the Swiz IoC framework are called beans.
Swiz uses the [Autowire] custom metadata to inject beans into other beans and views.

Disabled JSplitPane causes the resize cursor not working in JTable

I just found that whenever I disable a JSplitPane with setEnabled(false) then all the JTable in the pane will stop showing the resize cursor on the table header even though they are still resizable. So if you have to disable JSplitPane (make it not resizable) but still want the JTable in it be resizable then you need to provide your own resizer as below and apply it to your JTable this way new TableHeaderCursorResizer(jTable);



Wednesday, August 4, 2010

My love is the place where I came from - Taiwan

A wonderful series of introduction to Taiwan. It has five parts and each part contains three or four segments. You have to wait for a few seconds of black-out between the segments.

http://cbs5.com/video/?id=65565@kpix.dayport.com Taiwan Part 1
http://cbs5.com/video/?id=65564@kpix.dayport.com Taiwan Part 2
http://cbs5.com/video/?id=65566@kpix.dayport.com Taiwan Part 3
http://cbs5.com/video/?id=65569@kpix.dayport.com Taiwan Part 4
http://cbs5.com/video/?id=65572@kpix.dayport.com Taiwan Part 5

Sunday, July 25, 2010

Ubuntu 10.04 uses OpenJDK by default

Ubuntu recommends to use OpenJDK instead of the Oracle JDK, but you still can configure your system to use Oracle JDK by adding the repository indicates in the link below:
http://www.dzone.com/links/r/java_missing_on_ubuntu_no.html

Monday, June 14, 2010

Be aware of Java 1.6 upgrade

After I upgraded to Java 1.6 through Mac OS X Software ... I found I totally lost my previous Java 1.5 setting since all the older JDK versions are being soft-linked to the Current(1.6) but luckily this blog below helped me get back what I used to have.

The link is also very useful and easier:


Sunday, April 18, 2010

64-bit Eclipse ?


64-bit Eclipse(left screenshot) on Mac OSX is still a No-Go for me, it's very CPU hogging and can't be used as an efficient development tool ... 153.2% of CPU usage for rebuilding a project seems too high for me but 32-bit Eclipse (right screenshot) scored 126.6% is not conceivable too.

I may have missed something, but should I test 64-bit Eclipse with 64-bit kernel to get a better performance number ? unfortunately Apple will not support 64 EFI for my aged MacPro 1.1 ... :( should have done my homework before I bought this 4-year-old MacPro ... well, smart people sometimes make stupid mistakes let alone a regular person like me ...

Wednesday, April 7, 2010

Symbolic link on Windows

For a long time Linux/Unix user I sometimes complain that Windows is not so cool as Linux because it lacks symbolic link, but not anymore now ... symlinker can do the job for you on Windows Vista and 7.