Java Code Examples for javax.swing.JTextArea.setToolTipText()

The following are Jave code examples for showing how to use setToolTipText() of the javax.swing.JTextArea class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Cognizant-Intelligent-Test-Scripter   File: ReportDefect.java   Source Code and License Vote up 5 votes
/**
 * set up the listener for the text area editor open the full size editor on
 * right click
 *
 * @param jTextArea - target text area control
 */
private void setListener(final JTextArea jTextArea) {
    jTextArea.addMouseListener(new java.awt.event.MouseAdapter() {
        @Override
        public void mousePressed(MouseEvent e) {
            if (SwingUtilities.isRightMouseButton(e)) {
                panelTextArea.setText(jTextArea.getText());
                temp = jTextArea;
                showNext();
                panelTextArea.requestFocus();
            }
        }
    });
    jTextArea.setToolTipText("Press Right click to edit in Full Mode");
}