JTextField only accepts integers. Program shows error if value entered is null or 0.