Example usage for javax.swing JTextArea setToolTipText

List of usage examples for javax.swing JTextArea setToolTipText

Introduction

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

Prototype

@BeanProperty(bound = false, preferred = true, description = "The text to display in a tool tip.")
public void setToolTipText(String text) 

Source Link

Document

Registers the text to display in a tool tip.

Usage

From source file:org.ohdsi.whiteRabbit.WhiteRabbitMain.java

private JComponent createConsolePanel() {
    JTextArea consoleArea = new JTextArea();
    consoleArea.setToolTipText("General progress information");
    consoleArea.setEditable(false);/*from   ww  w .  ja va 2s . c  o  m*/
    Console console = new Console();
    console.setTextArea(consoleArea);
    System.setOut(new PrintStream(console));
    System.setErr(new PrintStream(console));
    JScrollPane consoleScrollPane = new JScrollPane(consoleArea);
    consoleScrollPane.setBorder(BorderFactory.createTitledBorder("Console"));
    consoleScrollPane.setPreferredSize(new Dimension(800, 200));
    consoleScrollPane.setAutoscrolls(true);
    ObjectExchange.console = console;
    return consoleScrollPane;
}