Java application with JPA persistent and Swing api