giozh
giozh

Reputation: 10068

JTextArea row, columns and character relation

What's the relation between JTextArea row/column and the character that it could contains? For example,

JTextArea text = new JTextArea(1,1);

how many character could this contain?

Upvotes: 1

Views: 1465

Answers (1)

Hovercraft Full Of Eels
Hovercraft Full Of Eels

Reputation: 285403

what's the relation between JTextArea row/columd and character that it could contains? for example,

JTextArea text = new JTextArea(1,1);

how many character could contains?

The row and column fields have no bearing on how many characters the JTextArea can hold, just in how they may be displayed. It will mainly effect the preferredSize of the text component.

Upvotes: 2

Related Questions