Lines Matching defs:columns
72 * and <code>columns</code> that are used to determine the preferred size.
79 * or <code>columns</code> is equal to zero,
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
159 * @param columns the number of columns >= 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.
173 * @param columns the number of columns >= 0
174 * @exception IllegalArgumentException if the rows or columns
177 public JTextArea(String text, int rows, int columns) {
178 this(null, text, rows, columns);
193 * and columns, and the given model. All of the constructors
199 * @param columns the number of columns >= 0
200 * @exception IllegalArgumentException if the rows or columns
203 public JTextArea(Document doc, String text, int rows, int columns) {
206 this.columns = columns;
218 if (columns < 0) {
219 throw new IllegalArgumentException("columns: " + columns);
562 * Returns the number of columns in the TextArea.
564 * @return number of columns >= 0
567 return columns;
571 * Sets the number of columns for this TextArea. Does an invalidate()
574 * @param columns the number of columns >= 0
575 * @exception IllegalArgumentException if columns is less than 0
578 * description: the number of columns preferred for display
580 public void setColumns(int columns) {
581 int oldVal = this.columns;
582 if (columns < 0) {
583 throw new IllegalArgumentException("columns less than zero.");
585 if (columns != oldVal) {
586 this.columns = columns;
623 if (columns != 0) {
624 d.width = Math.max(d.width, columns * getColumnWidth() +
663 ",colums=" + columns +
700 size.width = (columns == 0) ? size.width :
701 columns * getColumnWidth() + insets.left + insets.right;
708 * Components that display logical rows or columns should compute
809 private int columns;