aspose file tools*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTextArea size increase as size of font increase