title: NumberFormatException not being caught
body: <p>I'm out of Ideas, I don't know why these exceptions aren't being caught but the <code>ArithmeticException</code> is. It should catch the exception if there is no input for numerator or denominator right? Any assistance would be appreciated I've been ripping my hair out trying to get these exception classes to work.</p>
  
  <pre><code>public void actionPerformed(ActionEvent ev)
      {
  
          String numText = numFld.getText();
          String denText = denFld.getText();
  
          if(ev.getActionCommand().equals("Build Fraction"))
          {
  
              numFld.setText("");
              denFld.setText("");
  
              int numerator = Integer.parseInt(numText);  
              int denominator = Integer.parseInt(denText);
  
              try {
                  System.out.println(numerator);
              }
              catch(NumberFormatException ex) {
                  JOptionPane.showMessageDialog(pnlOne, "Numerator cannot be empty");
                  System.out.println(ex.getMessage());
                  numFld.requestFocus();
              }
  
              try {
                  System.out.println(denominator);
              }
              catch(NumberFormatException ex) {
                  JOptionPane.showMessageDialog(pnlOne, "Denominator cannot be empty");
                  System.out.println(ex.getMessage());
                  denFld.requestFocus();
              }
  
              try {
                  System.out.println(numerator/denominator);
              }
              catch(ArithmeticException ex) {
                  JOptionPane.showMessageDialog(pnlOne, "Denominator cannot be 0");
                  System.out.println(ex.getMessage());
                  denFld.requestFocus();
              }
  
              if (denominator !=0 &amp;&amp; numText!="" &amp;&amp; denText!="") {
              Fraction fraction = new Fraction(numerator,denominator);
              fractions.add(fraction);
              fractionFld.append(fraction.getNum() + "/" + fraction.getDen() + "\n\r");
              }
  
          }
  </code></pre>