RSS feed [root] /weblog /java




login:

password:

title search:




 


Wed Jun 23 23:53:07 AEST 2021

java



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

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

scripting


frame (title:'Demo') {
menuBar {
menu('File') {
menuItem 'New'
menuItem 'Open'
}
}
panel {
label 'Label 1'
slider()
comboBox(items:['one','two','three'])
}
}
frame.show()

http://blogs.sun.com/geertjan/entry/how_cool_is_swing_in

Example of using swing with groovy and CSS - http://www.jroller.com/aalmiray/entry/css_swing_groovy_you_bet

(google search) (amazon search)


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

debugging


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 - http://zvikico.typepad.com/problog/2007/11/five-ways-for-t.html

Follow up discussion - http://www.theserverside.com[..]_id=47708&asrc=EM_NLN_2697526&uid=703565

(google search) (amazon search)


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

jws


A nice introduction
http://www.cokeandcode.com/webstarthowto

In depth discussion
http://today.java.net/lpt/a/216
http://today.java.net/lpt/a/221

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

(google search) (amazon search)


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

jruby


Show how to use java class in jruby - http://blogs.sun.com/coolstuff/entry/using_java_classes_in_jruby

(google search) (amazon search)


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

classpath


Two nice basic tutorial about classpath - http://www-128.ibm.com[..]rary/j-classpath-unix/index.html?ca=drs- http://www-128.ibm.com[..]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

http://www.systemmobile.com/wp/?p=189

(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:/" - http://rifers.org[..]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. - http://www.rgagnon.com/javadetails/java-0445.html

(google search) (amazon search)


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

JMM


An excellent presentation - http://www.javapolis.com/JP05Content/talks/day3/brian2/index.html and excellent site - http://www.cs.umd.edu/~pugh/java/memoryModel/index.html Locking optimization at Java 6 http://www-128.ibm.com[..]rary/j-jtp10185/index.html?ca=drs-tp4205

(google search) (amazon search)


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

attach-on-demand


Retrieving .class files from a running app - http://blogs.sun.com[..]ajan/entry/retrieving_class_files_from_a

Using Attach API - http://weblogs.java.net[..]nus/archive/2007/08/combining_casca.html

(google search) (amazon search)


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

AbstractQueuedSynchronizer




Provides a framework for implementing blocking locks and related synchronizers (semaphores, events, etc) that rely on first-in-first-out (FIFO) wait queues. http://java.sun.com[..]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 - http://twasink.net/blog/archives/2005/07/text_files_test.html


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

A comparison - http://bge-kernel-panic.blogspot.com[..]2007/06/lesser-known-ioc-containers.html

(google search) (amazon search)


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

ikvm


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

http://www.infoq.com/news/2007/06/openjdk-hybrids

(google search) (amazon search)


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

jms


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

Array


You can ignore the last comma in arrays - http://hanuska.blogspot.com/2007/02/trailing-comma-in-arrays.html

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 - http://www.nevaobject.com[..]103&sid=494a2df12b48a1e8fdca8ae0e7bfb752

Java-COM Bridge - http://www.google.com/search?q=Java-COM%20Bridge

(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 - http://weblogs.java.net[..]nus/archive/2007/06/disassembling_s.html

(google search) (amazon search)


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

quickstart


of various java server - http://www.learntechnology.net/content/main.jsp
of various java technology - http://www.javapassion.com/j2ee/index.html

(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

http://blogs.sun.com[..]page/swinger?entry=on_gui_multithreading

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

(google search) (amazon search)


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

jar


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

http://ant.apache.org/manual/CoreTasks/jar.html#indexjars

Edit JAR in code - http://www.java-tips.org[..]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

image


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

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

(google search) (amazon search)


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

Transparent


Use swing to make transparent window - http://rabbit-hole.blogspot.com[..]java-transparent-windows-x11-update.html http://rabbit-hole.blogspot.com[..]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

http://beanman.wordpress.com[..]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 - http://www.orablogs.com/duffblog/archives/001445.html

How to load image Synchronously when printing - http://jroller.com/page/ethdsy?entry=printing_html_and_the_image


(google search) (amazon search)


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

autocomplete


An auto-completing TextArea in Swing - http://javainsel.blogg.de/eintrag.php?id=73

(google search) (amazon search)


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

validate


Using 1.5 metadata and annotations to validate web application

http://www.onjava.com/lpt/a/5572
http://java.sun.com[..]ticles/J2SE/constraints/annotations.html

(google search) (amazon search)