This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes JTextArea size increase as size of font increase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JTextArea size increase as size of font increase" Watch "JTextArea size increase as size of font increase" New topic
Author

JTextArea size increase as size of font increase

Mansoor ulHaq
Greenhorn

Joined: Aug 02, 2006
Posts: 2
I am using a JTextArea in a frame for displaying some contents. During execution when i increase font size of JTextArea then font size increases as well as size of JTextArea also increase. It covers a large area of frame. Please tell me which property of JTextArea I should set for fixing size of JTextArea. Only font size of contents increase/decrease but size of JTextArea must not change.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JTextArea size increase as size of font increase
 
Similar Threads
Changing Text Size Using IE does not work
display contents of a text file in a new window
Head First Java Chapter 14 problem
Font Size
jtextarea change font size