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...

At least my 6-year-old gets my humor…

[Originally Posted 28-Apr-05] Last night my daughter, Isabelle, says to my wife Mommy, what do chamelions do when they get mad? (no I don’t know where she gets these questions, but that doesn’t stop me from having fun) I promptly replied: They spit...

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...