help me please..
A:
If you look at the Javadoc, you'll see that JTextField derives from Component, and that has a setSize() method.
Brian Agnew
2010-03-14 12:24:13
Downvoted *why* ?
Brian Agnew
2010-03-14 12:39:24
Layout managers will call setSize() and override your size. It is better to use setPreferredSize(), setMinimumSize(), and setMaximumSize().
Jay Askren
2010-03-14 12:41:20
+3
A:
The jtextfield tutorial tells you about setColumns(), which might be what you want. Otherwise, you might need to learn about how to use layout managers - here's a tutorial.
John
2010-03-14 12:26:14