Codelines

Debugging the art of software

Entries Tagged ‘Java’

Enterprise Java - It Might Just Be The Root of All Evil

After an extremely long slog we got our enterprise Java semester project in at 4:30am this morning. Actually, it was probably a bit later as Ted stayed up doing the final touches and combining everything together for the final submission. So good work Ted!The majority of the previous consultation week and both weekends were required [...]

Leave a Comment

Java Swing - Use it The Right Way

Ever since I did enough Java GUI work to realise the correct way to use swing components it bugs me every time I see example code floating around that doesn’t follow the rules.“Swing components are not inherently thread safe, and as a general rule, after Swing components have been made visible on the screen, you [...]

Leave a Comment

Iterable Interface

The Iterable interface is a new interface that has been added in Java 5.0. Similar to the Iterator interface the Iterable interface exposes your data structure to the ‘for each’ command. Thus allowing you to perform not just the standard Iterator syntax on it, but the new collection style traversal. How? Read on.Looking at the [...]

Leave a Comment