RSS feed [root] /weblog /java



title search:


Wed Jun 23 23:53:07 AEST 2021


(google search) (amazon search)
download zip of files only

Fri Dec 14 20:10:58 AEDT 2007 From /weblog/java/swing


frame (title:'Demo') {
menuBar {
menu('File') {
menuItem 'New'
menuItem 'Open'
panel {
label 'Label 1'

Example of using swing with groovy and CSS -

(google search) (amazon search)

Thu Dec 06 03:28:42 AEDT 2007 From /weblog/java/discussion


Cohen goes on to describe when and how to use each of these methods:

* Basic - breakpoints
* Primal - debug messages
* Hot Shot - dynamic proxy
* Brute Force - run-time profiler
* New Age - through aspects

A good overview -

Follow up discussion -[..]_id=47708&asrc=EM_NLN_2697526&uid=703565

(google search) (amazon search)

Tue Oct 30 21:03:14 AEDT 2007 From /weblog/java/features


A nice introduction

In depth discussion

Some common problem:[..]-never-deploy-with-java-web-start-again/

(google search) (amazon search)

Thu Sep 20 02:29:09 AEST 2007 From /weblog/java/libraries


Show how to use java class in jruby -

(google search) (amazon search)

Tue Sep 11 02:20:10 AEST 2007 From /weblog/java/fundamental


Two nice basic tutorial about classpath -[..]rary/j-classpath-unix/index.html?ca=drs-[..]y/j-classpath-windows/index.html?ca=drs-

(google search) (amazon search)

Tue Sep 11 02:19:46 AEST 2007 From /weblog/java/features

using Class.isAssignableFrom

If class A is subclass of B, then

B.isAssignableFrom(new A()) == true, and, new A().getClass() == B.class

However, when you object is generated using proxy tool like CGLIB

B.isAssignableFrom(new A()) == true, and, new A().getClass() != B.class

(google search) (amazon search)

Fri Aug 31 11:57:58 AEST 2007 From /weblog/java/network

problem of host lookup

Prevent java to resort "c:/" -[..]05/12/22/flaky_file_urls_jdk_1_4_windows

DNS caching explain, in Java6, When a security manager is not set, the default behavior is to cache for 30 seconds. -

(google search) (amazon search)

Sun Aug 05 04:40:37 AEST 2007 From /weblog/java/concurrency


An excellent presentation - and excellent site - Locking optimization at Java 6[..]rary/j-jtp10185/index.html?ca=drs-tp4205

(google search) (amazon search)

Fri Aug 03 16:41:26 AEST 2007 From /weblog/java/features


Retrieving .class files from a running app -[..]ajan/entry/retrieving_class_files_from_a

Using Attach API -[..]nus/archive/2007/08/combining_casca.html

(google search) (amazon search)

Thu Aug 02 03:25:51 AEST 2007 From /weblog/java/concurrency


Provides a framework for implementing blocking locks and related synchronizers (semaphores, events, etc) that rely on first-in-first-out (FIFO) wait queues.[..]nt/locks/AbstractQueuedSynchronizer.html

(google search) (amazon search)

Wed Jul 11 00:31:50 AEST 2007 From /weblog/java/libraries

IoC frameworks

beanUtil - A blog show how to create object according to the attributes specified from else where. Look like spring IOC already do similar thing... not sure how much better of using beanUtil -

A very detailed blog discuss the benefit of using google-guice -[..]03/using-guice-as-di-framework-some.html

A comparison -[..]2007/06/lesser-known-ioc-containers.html

(google search) (amazon search)

Wed Jun 27 17:11:23 AEST 2007 From /weblog/java/libraries


I just try ikvm today, both release and the build using OpenJDK, both can launch and run eclipse without any issue, performance is ok, but the distribution size is a lot less than Sun/IBM JRE, very amazing to me

(google search) (amazon search)

Fri Jun 22 20:18:53 AEST 2007 From /weblog/java/libraries


If you use MQ API MQMessage to send message :

mqMessage.writeString(arg1 : content);

At the receiving side, it will not be String but byte[]

(google search) (amazon search)

Fri Jun 22 20:10:12 AEST 2007 From /weblog/java/fundamental


You can ignore the last comma in arrays -

When you try to case an Array to other Type, you will get funny exception like
Exception in thread "main" java.lang.ClassCastException: [B

Which, showing that if you call new byte[0].getClass() , you will get "[B".

(google search) (amazon search)

Thu Jun 14 03:03:20 AEST 2007 From /weblog/java/libraries

Windows platform specificed

DDE server caller -[..]103&sid=494a2df12b48a1e8fdca8ae0e7bfb752

Java-COM Bridge -

(google search) (amazon search)

Thu Jun 14 01:17:09 AEST 2007 From /weblog/java/network

Disassembling serializable object

Example of how to disassembling object get from RMI -[..]nus/archive/2007/06/disassembling_s.html

(google search) (amazon search)

Sun May 13 21:12:13 AEST 2007 From /weblog/java/hacks


of various java server -
of various java technology -

(google search) (amazon search)

Sun May 13 20:07:57 AEST 2007 From /weblog/java/swing

on multithread gui

Nice comment about swing multithread handling[..]page/swinger?entry=on_gui_multithreading

Tips of using swingworker at multi-thread environment -[..]07/04/30/never-do-this-with-swingworker/

(google search) (amazon search)

Thu May 03 17:30:15 AEST 2007 From /weblog/java/hacks


This should not really matter for deployment case, but for development which keep on restarting may be useful

Edit JAR in code -[..]og/java-se/how-to-modify-a-jar-file.html

(google search) (amazon search)

Sat Apr 28 18:53:35 AEST 2007 From /weblog/java/features


Strategies of loading image, select difference API to load image in difference case -[..]rticles/Media/imagestrategies/index.html

The Perils of Image.getScaledInstance() , with more detail explanation of image handling -[..]3/perils-of-image-getscaledinstance.html

(google search) (amazon search)

Fri Apr 27 20:44:05 AEST 2007 From /weblog/java/swing


Use swing to make transparent window -[..]java-transparent-windows-x11-update.html[..]com/2007/04/alpha-mask-transparency.html

(google search) (amazon search)

Fri Apr 27 18:12:43 AEST 2007 From /weblog/java/hacks

Throws NULL

We can just

throw null;

in java, but probably not a good idea for most case[..]hrowing-null-with-different-jvm-options/

(google search) (amazon search)

Tue Apr 24 21:57:20 AEST 2007 From /weblog/java/swing

HTMLEditor sample

A nice reading -

How to load image Synchronously when printing -

(google search) (amazon search)

Sun Apr 15 02:09:24 AEST 2007 From /weblog/java/swing


An auto-completing TextArea in Swing -

(google search) (amazon search)

Sun Apr 15 01:48:36 AEST 2007 From /weblog/java/annotation


Using 1.5 metadata and annotations to validate web application[..]ticles/J2SE/constraints/annotations.html

(google search) (amazon search)