本文整理了Java中javax.swing.JEditorPane.setToolTipText()
方法的一些代码示例,展示了JEditorPane.setToolTipText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JEditorPane.setToolTipText()
方法的具体详情如下:
包路径:javax.swing.JEditorPane
类名称:JEditorPane
方法名:setToolTipText
暂无
代码示例来源:origin: magefree/mage
+ GUISizeHelper.gameDialogAreaFontSizeBig
+ ";color: #FFFFFF'><p width='500'>" + basicText + "</p></body></html>";
MageTextArea.super.setToolTipText(tooltip);
} else {
MageTextArea.super.setToolTipText(null);
代码示例来源:origin: stackoverflow.com
editorPane.setToolTipText("if you click on <b>that link you go to the stack");
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ENTERED) {
commChannelsDisplayer.setToolTipText(e.getDescription());
commChannelsDisplayer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
return;
}
if (e.getEventType() == HyperlinkEvent.EventType.EXITED) {
commChannelsDisplayer.setToolTipText(""); //NOI18N
commChannelsDisplayer.setCursor(Cursor.getDefaultCursor());
return;
}
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
URLDisplayer.getDefault().showURL(e.getURL());
return;
}
}
});
代码示例来源:origin: com.fifesoft.rtext/fife.common
editorPane.setToolTipText(e.getDescription());
editorPane.setToolTipText(null);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-kenai-ui
public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ENTERED) {
issuesInfoPane.setToolTipText(e.getDescription());
issuesInfoPane.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
return;
}
if (e.getEventType() == HyperlinkEvent.EventType.EXITED) {
issuesInfoPane.setToolTipText(""); //NOI18N
issuesInfoPane.setCursor(Cursor.getDefaultCursor());
return;
}
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
if (e.getDescription().startsWith("issue:")) { //NOI18N
final String issueNumber = e.getDescription().substring(6);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
KenaiIssueAccessor.getDefault().open(instPr, issueNumber);
}
});
return;
}
URLDisplayer.getDefault().showURL(e.getURL());
return;
}
}
});
代码示例来源:origin: stackoverflow.com
JEditorPane dtrpnTypeTextHere = new JEditorPane();
dtrpnTypeTextHere.setContentType("type/normal");
dtrpnTypeTextHere.setToolTipText("");
dtrpnTypeTextHere.setFont(new Font("Arial", Font.PLAIN, 16));
dtrpnTypeTextHere.setForeground(Color.GREEN);
dtrpnTypeTextHere.setBackground(Color.BLACK);
dtrpnTypeTextHere.setBounds(10, 23, 1152, 671);
contentPane.add(dtrpnTypeTextHere);
int length = dtrpnTypeTextHere.getDocument().getLength();
String text = dtrpnTypeTextHere.getDocument().getText(0, length);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-beans
@Override
protected void showSelectedCDI() {
getSelectedBindingsComponent().setToolTipText(null);
TreePath treePath = getJavaTree().getSelectionPath();
if (treePath != null) {
getSelectedBindingsComponent().setToolTipText(((JavaElement)node).getTooltip());
代码示例来源:origin: dcaoyuan/nbscala
tfCondition.setToolTipText(org.openide.util.NbBundle.getMessage(ConditionsPanel.class, "ConditionsPanel.tfCondition.toolTipText")); // NOI18N
spCondition.setViewportView(tfCondition);
tfCondition.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(ConditionsPanel.class, "ACSN_ConditionTF")); // NOI18N
代码示例来源:origin: hltfbk/Excitement-Open-Platform
cookedTextLabel.setEditable(false);
cookedTextLabel.setContentType("text/html"); // prepares the label for html content
cookedTextLabel.setToolTipText("This label shows the text after sentence splitting");
JScrollPane textCookedTextScrollPane = new JScrollPane(cookedTextLabel);
selectedTreeTextArea = new JEditorPane();
selectedTreeTextArea.setEditable(false);
selectedTreeTextArea.setToolTipText(HTML_TABLE_TOOL_TIP);
JScrollPane scrollPaneForSelectedTreeTextArea = new JScrollPane(selectedTreeTextArea);
scrollPaneForSelectedTreeTextArea.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
regularSearchTextArea = new JEditorPane();
regularSearchTextArea.setEditable(false);
regularSearchTextArea.setToolTipText(HTML_TABLE_TOOL_TIP);
JScrollPane scrollPaneForRegularSearchTextArea = new JScrollPane(regularSearchTextArea);
scrollPaneForRegularSearchTextArea.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
代码示例来源:origin: freeplane/freeplane
public void deHighlight() {
if (originallySelectedNode == null)
return;
final Controller controller = Controller.getCurrentController();
if (controller == null)
return;
final MapController mapController = controller.getModeController().getMapController();
mapController.displayNode(originallySelectedNode);
mapController.select(originallySelectedNode);
foldOriginallyFolded(mapController);
originallySelectedNode = null;
pane.setToolTipText(null);
}
代码示例来源:origin: freeplane/freeplane
mapController.displayNode(node, nodesOriginallyFolded);
mapController.select(node);
pane.setToolTipText(node.getText());
return true;
pane.setToolTipText("<html><body bgcolor='#CC0000'>" //
+ TextUtils.format(getResourceKey("node_is_not_defined"), id) + "</body></html>");
代码示例来源:origin: kaikramer/keystore-explorer
jepExtensionValue.setFont(new Font(Font.MONOSPACED, Font.PLAIN, LnfUtil.getDefaultFontSize()));
jepExtensionValue.setEditable(false);
jepExtensionValue.setToolTipText(res.getString("DViewExtensions.jtaExtensionValue.tooltip"));
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-indicators
public RepairPanel(ValidationStatus status) {
setOpaque(false);
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
add(Box.createVerticalGlue());
String text = status.isKnown() ? status.getReason() : getMessage("RepairPanel.Label.Text"); // NOI18N
String buttonText = getMessage("RepairPanel.Repair.Text"); // NOI18N
label = UIUtilities.createJEditorPane(text, false, DLightUIPrefs.getColor(DLightUIPrefs.INDICATOR_LEGEND_FONT_COLOR));
if (!status.isKnown()) {
label.setToolTipText(getMessage("RepairPanel.Label.Tooltip", buttonText));//NOI18N
} else {
label.setToolTipText(text);
}
Dimension d = label.getPreferredSize();
label.setMaximumSize(new Dimension(d.width + 2, d.height));
add(label);
add(Box.createVerticalStrut(MARGIN));
if (!status.isKnown()) {
button = new JButton(buttonText);
button.setAlignmentX(0.5f);
add(button);
}
add(Box.createVerticalGlue());
addMouseListener(new PopupMenuListener());
}
内容来源于网络,如有侵权,请联系作者删除!