| Author |
how to increase the size of the text field and change its position ?
|
naved momin
Ranch Hand
Joined: Jul 03, 2011
Posts: 675
|
|
my text box is very small in output , even though i have manually set the text bounds by giving the pixels and all , but still it does not changing any size of it ..please tell me whats wrong ?
|
The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
|
 |
Andrey Kozhanov
Ranch Hand
Joined: Mar 12, 2010
Posts: 79
|
|
|
Just use another JTextField constructor - JTextField(String text), where text contains initial text field string, or JTextField(int columns).
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
Correct. The call to setBounds is useless as the layout manager will resize it anyway. Naved, you should read this.
I'll move this thread to our GUI forum.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: how to increase the size of the text field and change its position ?
|
|
|