Example usage for javax.swing JPasswordField getAccessibleContext

List of usage examples for javax.swing JPasswordField getAccessibleContext

Introduction

In this page you can find the example usage for javax.swing JPasswordField getAccessibleContext.

Prototype

@BeanProperty(bound = false)
public AccessibleContext getAccessibleContext() 

Source Link

Document

Returns the AccessibleContext associated with this JPasswordField.

Usage

From source file:com.eviware.soapui.support.components.SimpleForm.java

public JPasswordField appendPasswordField(String label, String tooltip) {
    JPasswordField textField = new JPasswordField();
    textField.setColumns(defaultTextFieldColumns);
    textField.setToolTipText(StringUtils.defaultIfEmpty(tooltip, null));
    textField.getAccessibleContext().setAccessibleDescription(tooltip);
    append(label, textField);//  w w  w.  ja v a 2  s .c  o m
    return textField;
}