Archive for the 'Java' Category

Apple released Java SE6 for Leopard today. This is a much anticipated release among Java developers using Macs. Go get it from the usual place in the Apple menu. It looks like it also installed the 64-bit Java 5 runtime, because I don’t remember seeing it before in the Java Preferences app. I know that [...]


The following is perfectly legal code in Java 1.4.2. In fact, this is code that has existed in lab exercises for an Advanced Java Programming class I’ve taught for years.

public void add(String item) {
DefaultListModel model = (DefaultListModel) getModel();
[...]