Swing and Database oriented Java class