Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting JTextField size (graphic, not chars)

Status
Not open for further replies.

scienzia

Programmer
Feb 21, 2002
160
IT
I usually program in c++, and I'm not so good in making windows in Java...

How do I set a JTextField size?
I'm talking about the size in the window, not the number of characters.
 
you should be able to use the inherited methods

setMaximumSize()

setMinimumSize()

setPreferredSize()

although their effectiveness may be dependent on the layout manager you are using and the size of other components on your layout.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top