aspose file tools
The moose likes Swing / AWT / SWT and the fly likes how to increase the size of the text field and change its position ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "how to increase the size of the text field and change its position ?" Watch "how to increase the size of the text field and change its position ?" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to increase the size of the text field and change its position ?
 
Similar Threads
Swing simple
Not able to read the value of a component on one JPanel from a different JPanel
Arrow navigation not working on JComboBox with null element
JDialog- Multiple inputs
deadlocks