Lines Matching defs:columns
169 * and the number of columns is set to 0.
178 * columns is 0.
188 * number of columns.
192 * @param columns the number of columns to use to calculate
193 * the preferred width; if columns is set to zero, the
197 public JTextField(int columns) {
198 this(null, null, columns);
203 * specified text and columns. A default model is created.
206 * @param columns the number of columns to use to calculate
207 * the preferred width; if columns is set to zero, the
211 public JTextField(String text, int columns) {
212 this(null, text, columns);
217 * storage model and the given number of columns.
225 * @param columns the number of columns to use to calculate
226 * the preferred width >= 0; if <code>columns</code>
229 * @exception IllegalArgumentException if <code>columns</code> < 0
231 public JTextField(Document doc, String text, int columns) {
232 if (columns < 0) {
233 throw new IllegalArgumentException("columns less than zero.");
237 this.columns = columns;
368 * Returns the number of columns in this <code>TextField</code>.
370 * @return the number of columns >= 0
373 return columns;
377 * Sets the number of columns in this <code>TextField</code>,
380 * @param columns the number of columns >= 0
381 * @exception IllegalArgumentException if <code>columns</code>
384 * description: the number of columns preferred for display
386 public void setColumns(int columns) {
387 int oldVal = this.columns;
388 if (columns < 0) {
389 throw new IllegalArgumentException("columns less than zero.");
391 if (columns != oldVal) {
392 this.columns = columns;
417 * <code>TextField</code>. If a non-zero number of columns has been
418 * set, the width is set to the columns multiplied by
425 if (columns != 0) {
427 size.width = columns * getColumnWidth() +
809 private int columns;
901 ",columns=" + columns +