title: Constrain numeric value in JTextField to a specific range, with defaults
body: <p>Not sure how to write this in JAVA...
  I need to code that will insert a default value (say 50) if user keys in a value outside of a given range of 10-100 feet. I have it working for errors if blank or non integer is entered or value is outside the range but cannot figure out how to integrate a default. 
  What I have that works is </p>
  
  <pre><code>JPanel panel1 = new JPanel();
      panel1.setLayout(new FlowLayout());
      poolLength = new JTextField(10);
      panel1.add(new JLabel("Enter the pool's length (ft):"));
      panel1.add(poolLength);
  </code></pre>
  
  <p>What I want to add is something like this</p>
  
  <pre><code>If poolLength &lt;10 or &gt;200 then poolLength = 100
          Else this.add(panel1);
  </code></pre>