JTextField increase size to the top
<p>I have a form, how do i make the text fileld to increase its size to the top not bottom of the form <a href="https://i.stack.imgur.com/wG9xW.png" rel="nofollow noreferrer">form</a></p>

<p><a href="https://i.stack.imgur.com/wG9xW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wG9xW.png" alt="enter image description here"></a></p>

<pre><code> txfWin.setSize(30,reel.getNumberOfWins()+reel.getNumberOfWins()*10);
</code></pre>