title: Override only parts of a method
body: <p>I want to override the method <code>setText</code> in my <code>JDoubleField</code> that extends <code>JTextField</code> to filter the parameters to guarantee that the input is parse-able. The filter itself is a short piece of code, but I have no idea what the rest of the contents of the method are, so I wanted to have something like:</p>
  
  <pre><code> @Override
      public void setText(String sText)
      {
          try{
              Double.parseDouble(sText);
          } catch(NumberFormatException e)
          {
              sText = "";
          }
  
        // The original method goes here.
      }
  </code></pre>
  
  <p>Any idea on how I could be able to do that?</p>