title: How to set format to a JFormattedTextField
body: <p>I want to use a <code>JFormattedTextField</code> that can input fraction numbers. As Java doc specifies its format should set within the constructor. But I’m using NetBeans IDE,  the constructor of the <code>JFormattedTextField</code> is a generated code , so I don’t know how to specify a format. </p>
  
  <p>And if you can please direct me to a helpful tutorial.</p>