Solved Problem with java gui