Package javax.swing

Examples of javax.swing.JToolTip


    p.y = (p.y/textArea.getLineHeight()) * textArea.getLineHeight();
    p.x = getWidth() + textArea.getMargin().left;
    Gutter gutter = getGutter();
    int gutterMargin = gutter.getInsets().right;
    p.x += gutterMargin;
    JToolTip tempTip = createToolTip();
    p.x -= tempTip.getInsets().left;
    p.y += 16;
    return p;
  }
View Full Code Here


    }

    public CompletionTask createToolTipTask() {
        return new AsyncCompletionTask(new AsyncCompletionQuery() {
            protected void query(CompletionResultSet completionResultSet, Document document, int i) {
                JToolTip toolTip = new JToolTip();
                toolTip.setTipText("Press Enter to insert \"" + getCompletionText() + "\"");
                completionResultSet.setToolTip(toolTip);
                completionResultSet.finish();
            }
        });
    }
View Full Code Here

            @Override
            public void eventDispatched(AWTEvent event) {

                HierarchyEvent he = (HierarchyEvent) event;
                if (he.getComponent() instanceof JToolTip) {
                    JToolTip jtt = (JToolTip) he.getComponent();
                    listener.setToolTip(jtt.getTipText());
                    jtt.setVisible(false);
                }

            }
        };
View Full Code Here

TOP

Related Classes of javax.swing.JToolTip

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.