Rob Lybarger

13 articles

Good Java Style, Revisited

Introduction I was recently asked to review and update an older article entitled "Good Java Style" which was presented in two parts (Part One and...

Displaying XML in a Swing JTree

Overview It seems obvious enough: You have an XML document or fragment. XML is hierarchical. A Swing JTree displays hierarchical data. How do you make...

Dynamic Service Discovery with Java

Overview Writing a network service application in Java is usually a straightforward matter: Open a ServerSocket on some specified port on the machine, listen for...

Managing Long-Running Tasks in a Swing App

Getting a Swing application to work can often be its own challenge. Getting it to work "just right" all the more taxes one's experience...

Working with XML and Java

Introduction In this article, I will demonstrate some basic techniques for reading XML file data using straight Java code and no third-party libraries. Although I...

Back to Basics with Dates, Calendars, and Formatters

Introduction Working with dates seems like a simple enough task, but there are some pitfalls for the unwary. This article was sparked, in part, by...

Notifications in a Java/Swing Application

Overview In a previous article, I demonstrated how to use an "application controller" object to separate the control logic from the user interface classes in...

Threads Versus The Singleton Pattern

Given the recent uptake in the application of the singleton design pattern, it bears noting that certain applications of this pattern might not play...

MVC in a Java/Swing Application

Spend enough time writing code, and you will eventually hear of the Model-View-Controller (MVC) paradigm: your data, business logic, and presentation should all be...

A Brief Introduction to OpenOffice.org Writer Files

Open Office.org Writer, a no-cost, open-source answer to otherwise pricey, commercial word processing applications, stores its files with an "odt" extension. Even users with...

Make sure to follow Developer.com on Social Media