How would you get a JTextArea to know how many lines it had?

Printable View