code: public void init(int iMaxLength, boolean bAlignRight)
      {
          this.setColumns(iMaxLength);
          this.setBorder(null);
          if (bAlignRight)
              this.setHorizontalAlignment(JTextField.RIGHT);
      }
docs: Creates new JCellButton.
  @param iMaxLength The number of columns of text in this field.
  @param bAlignRight If true, align the text to the right.