fixed abs path in Swing Sample, changed something to java 1.7