Search:

Type: Posts; User: snowguy13

Search: Search took 0.14 seconds.

  1. Replies
    7
    Views
    3,526

    [SOLVED] Re: JTextArea font/character count issue

    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,...
  2. Replies
    7
    Views
    3,526

    [SOLVED] Re: JTextArea font/character count issue

    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...
Results 1 to 2 of 2