Lines Matching refs:columns

53  * // blank field of 20 columns
57 * // predefined text in 30 columns
100 * The number of columns in the text field.
109 int columns;
172 * of columns. A column is an approximate average character
174 * @param columns the number of columns. If
175 * <code>columns</code> is less than <code>0</code>,
176 * <code>columns</code> is set to <code>0</code>.
181 public TextField(int columns) throws HeadlessException {
182 this("", columns);
188 * number of columns. A column is an approximate average character
193 * @param columns the number of columns. If
194 * <code>columns</code> is less than <code>0</code>,
195 * <code>columns</code> is set to <code>0</code>.
200 public TextField(String text, int columns) throws HeadlessException {
202 this.columns = (columns >= 0) ? columns : 0;
320 * Gets the number of columns in this text field. A column is an
322 * @return the number of columns.
327 return columns;
331 * Sets the number of columns in this text field. A column is an
333 * @param columns the number of columns.
336 * supplied for <code>columns</code>
340 public void setColumns(int columns) {
343 oldVal = this.columns;
344 if (columns < 0) {
345 throw new IllegalArgumentException("columns less than zero.");
347 if (columns != oldVal) {
348 this.columns = columns;
352 if (columns != oldVal) {
359 * with the specified number of columns.
360 * @param columns the number of columns
366 public Dimension getPreferredSize(int columns) {
367 return preferredSize(columns);
375 public Dimension preferredSize(int columns) {
379 peer.getPreferredSize(columns) :
401 return (columns > 0) ?
402 preferredSize(columns) :
409 * the specified number of columns.
410 * @param columns the number of columns in
414 public Dimension getMinimumSize(int columns) {
415 return minimumSize(columns);
423 public Dimension minimumSize(int columns) {
427 peer.getMinimumSize(columns) :
449 return (columns > 0) ?
450 minimumSize(columns) :
692 // Make sure the state we just read in for columns has legal values
693 if (columns < 0) {
694 columns = 0;