To get information about Font sizes (height and width, etc.), the FontMetrics class is quite useful. For your purposes, I'd look at getHeight() and charWidth().
Note that FontMetrics is abstract,...
Type: Posts; User: snowguy13
To get information about Font sizes (height and width, etc.), the FontMetrics class is quite useful. For your purposes, I'd look at getHeight() and charWidth().
Note that FontMetrics is abstract,...
To detect when your JTextArea is resized, you can use a ComponentListener (doc here), particularly the componentResized() method to detect when the JTextArea is resized.
After that, I'd suggest...