Lines Matching defs:rows

71  * <code>java.awt.TextArea</code> has two properties <code>rows</code>
78 * a <code>JScrollPane</code>. If the value for <code>rows</code>
137 * is null, and rows/columns are set to 0.
145 * A default model is created and rows/columns are set to 0.
155 * rows and columns. A default model is created, and the initial
158 * @param rows the number of rows >= 0
160 * @exception IllegalArgumentException if the rows or columns
163 public JTextArea(int rows, int columns) {
164 this(null, null, rows, columns);
169 * of rows and columns. A default model is created.
172 * @param rows the number of rows >= 0
174 * @exception IllegalArgumentException if the rows or columns
177 public JTextArea(String text, int rows, int columns) {
178 this(null, text, rows, columns);
192 * Constructs a new JTextArea with the specified number of rows
198 * @param rows the number of rows >= 0
200 * @exception IllegalArgumentException if the rows or columns
203 public JTextArea(Document doc, String text, int rows, int columns) {
205 this.rows = rows;
215 if (rows < 0) {
216 throw new IllegalArgumentException("rows: " + rows);
518 * Returns the number of rows in the TextArea.
520 * @return the number of rows >= 0
523 return rows;
527 * Sets the number of rows for this TextArea. Calls invalidate() after
530 * @param rows the number of rows >= 0
531 * @exception IllegalArgumentException if rows is less than 0
534 * description: the number of rows preferred for display
536 public void setRows(int rows) {
537 int oldVal = this.rows;
538 if (rows < 0) {
539 throw new IllegalArgumentException("rows less than zero.");
541 if (rows != oldVal) {
542 this.rows = rows;
627 if (rows != 0) {
628 d.height = Math.max(d.height, rows * getRowHeight() +
665 ",rows=" + rows +
702 size.height = (rows == 0) ? size.height :
703 rows * getRowHeight() + insets.top + insets.bottom;
708 * Components that display logical rows or columns should compute
808 private int rows;