title: The component can't return to original size after window dragged from large to small
body: <p>The Swing component can't return to its original size after the <code>JFrame</code> window dragged from large to small.</p>
  
  <p>Take <code>JTextField</code> for example, when I change the size of its parent frame using mouse drag, the text field's length changed.</p>
  
  <p>However, after the frame is dragged from large size to small size, </p>
  
  <ul>
  <li>The text field's length can't become small, or return to its original
  size.</li>
  <li>The text field's length become large when the frame is dragging to large. </li>
  </ul>
  
  <p>Then how to let it become small according to the frame's dragging?</p>
  
  <p>Actually, many other swing components have the problem, like radio button and so on.</p>