Example usage for javax.swing JTextArea getAccessibleContext

List of usage examples for javax.swing JTextArea getAccessibleContext

Introduction

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

Prototype

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

Source Link

Document

Gets the AccessibleContext associated with this JTextArea.

Usage

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

public JTextArea appendTextArea(String label, String tooltip) {
    JTextArea textArea = new JUndoableTextArea();
    textArea.setColumns(defaultTextAreaColumns);
    textArea.setRows(defaultTextAreaRows);
    textArea.setAutoscrolls(true);//  w  ww.j  a  v a2  s .c om
    textArea.add(new JScrollPane());
    setToolTip(textArea, tooltip);
    textArea.getAccessibleContext().setAccessibleDescription(tooltip);
    JTextComponentPopupMenu.add(textArea);
    append(label, new JScrollPane(textArea));
    return textArea;
}