Working around the Swing setMinimumSize bug

Within Swing you’re supposed to be able to specify the minimum size for a frame with a simple call. For instance, assume that I made a frame that extends JFrame. Consider adding the following line to the constructor: setMinimumSize(new Dimension(600,400)); This...

Using Java Assertions

[Originally Posted 25-July-2004] Most Java programmers know that as of Java 2 release 1.4 a new keyword “assert” has been added. But far less programmers know what it’s good for. Developer Exchange has a great article explaining assertions and how to...

Introduction to AOP in Spring

[Originally Posted 18-July-2004] OnJava.com has a great article on Aspect Oriented Programming and the Spring Framework. AOP via Spring is done in a very neat and pragmatic approach. No pre-compilers (like AspectJ) needed. Just simple XML configuration of your Spring...

The Java is Faster than C++ Benchmark

[Originaly Posted 22-June-2004] I knew that Java was gaining ground on C++ in a lot of areas with respect to performance, but this is quite impressive… http://kano.net/javabench/index Note that while the client JavaVM still has pretty bad performance (it’s...