Java GUI Prime Number Calculator