public void setToolTip(JComponent toolTip, PopupManager.HorizontalBounds horizontalBounds, PopupManager.Placement placement) { setToolTip(toolTip, PopupManager.ViewPortBounds, PopupManager.AbovePreferred, 0, 0); }
public void run() { String oldText = toolTipText; toolTipText = text; firePropertyChange(PROP_TOOL_TIP_TEXT, oldText, toolTipText); if (toolTipText != null) { JTextArea ta = createTextToolTip(); ta.setText(toolTipText); setToolTip(ta); } else { // null text if (status == STATUS_TEXT_VISIBLE) { setToolTipVisible(false); } } } });
/** Set the tooltip component. * It can be called either to set the custom component * that will display the text tooltips or to display * the generic component with the tooltip after * the tooltip timer has fired. * @param toolTip component that either contains the tooltip * or that will display a text tooltip. */ public void setToolTip(JComponent toolTip) { setToolTip(toolTip, PopupManager.ViewPortBounds, PopupManager.AbovePreferred); }
/** * @return the component that either contains the tooltip or is responsible * for displaying of text tooltips. */ public final JComponent getToolTip() { if (toolTip == null) { setToolTip(createDefaultToolTip()); } return toolTip; }
/** @return the component that either contains the tooltip * or is responsible for displaying of text tooltips. */ public final JComponent getToolTip() { if (toolTip == null) { setToolTip(createDefaultToolTip()); } return toolTip; }
public void showTooltip() { final JEditorPane ep = EditorContextDispatcher.getDefault().getMostRecentEditor(); final EditorUI eui = org.netbeans.editor.Utilities.getEditorUI(ep); final ToolTipSupport toolTipSupport = eui.getToolTipSupport(); toolTipSupport.setToolTip(this, PopupManager.ViewPortBounds, PopupManager.AbovePreferred, 0, 0, ToolTipSupport.FLAGS_HEAVYWEIGHT_TOOLTIP); }
public void showTooltip() { final JEditorPane ep = EditorContextDispatcher.getDefault().getMostRecentEditor(); final EditorUI eui = org.netbeans.editor.Utilities.getEditorUI(ep); final ToolTipSupport toolTipSupport = eui.getToolTipSupport(); toolTipSupport.setToolTip(this); }
public String getToolTipText(float x, float y, Shape allocation){ ToolTipSupport tts = ((ExtEditorUI)getEditorUI()).getToolTipSupport(); JComponent toolTip = new FoldingToolTip(getExpandedView(), getEditorUI()); tts.setToolTip(toolTip, PopupManager.ScrollBarBounds, PopupManager.BelowPreferred, -FoldingToolTip.BORDER_WIDTH, 0); return ""; }
EditorUI eui = Utilities.getEditorUI(ep); if (eui != null) { eui.getToolTipSupport().setToolTip(et); } else { firePropertyChange (PROP_SHORT_DESCRIPTION, null, toolTip);