This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Max Size Text in JTextField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Max Size Text in JTextField" Watch "Max Size Text in JTextField" New topic
Author

Max Size Text in JTextField

Struan Kay
Greenhorn

Joined: May 20, 2004
Posts: 3
I hava a jtextfield on a component with a Gridbag layout. I want the text in the Textfield to be the maximum height possible, such that it just fits vertically into the field. I know I can change the font but how do I decide the size or is the a better way of doing it.

The information displayed is purely numerical I don't suppose there's and 8 segment display component that I'm missing is there?

Thanks

Struan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Max Size Text in JTextField
 
It's not a secret anymore!