Class JosmPasswordField

    • Constructor Detail

      • JosmPasswordField

        public JosmPasswordField()
        Constructs a new JosmPasswordField, with a default document, null starting text string, and 0 column width.
      • JosmPasswordField

        public JosmPasswordField​(Document doc,
                                 String txt,
                                 int columns)
        Constructs a new JosmPasswordField that uses the given text storage model and the given number of columns. This is the constructor through which the other constructors feed. The echo character is set to '*', but may be changed by the current Look and Feel. If the document model is null, a default one will be created.
        Parameters:
        doc - the text storage to use
        txt - the text to be displayed, null if none
        columns - the number of columns to use to calculate the preferred width >= 0; if columns is set to zero, the preferred width will be whatever naturally results from the component implementation
      • JosmPasswordField

        public JosmPasswordField​(int columns)
        Constructs a new empty JosmPasswordField with the specified number of columns. A default model is created, and the initial string is set to null.
        Parameters:
        columns - the number of columns >= 0
      • JosmPasswordField

        public JosmPasswordField​(String text,
                                 int columns)
        Constructs a new JPasswordField initialized with the specified text and columns. The document model is set to the default.
        Parameters:
        text - the text to be displayed, null if none
        columns - the number of columns >= 0
      • JosmPasswordField

        public JosmPasswordField​(String text)
        Constructs a new JosmPasswordField initialized with the specified text. The document model is set to the default, and the number of columns to 0.
        Parameters:
        text - the text to be displayed, null if none