Available Methods
- getDocument ( )
- setEditable ( )
- setText ( )
- getSelectionEnd ( )
- setContentType ( )
- getSelectionStart ( )
- putClientProperty ( )
- getCaret ( )
- modelToView ( )
- getBackground ( )
- setEditorKit ( )
- removePropertyChangeListener ( )
- isEnabled ( )
- getEditorKit ( )
- addCaretListener ( )
- setCaretPosition ( )
- addHyperlinkListener ( )
- removeCaretListener ( )
- replaceSelection ( )
- getSelectedText ( )
- addPropertyChangeListener ( )
- getForeground ( )
- setFont ( )
- setSize ( )
- setOpaque ( )
- setFocusable ( )
- setBorder ( )
- repaint ( )
- setBackground ( )
- isEditable ( )
- registerEditorKitForContentType ( )
- setSelectionEnd ( )
- setPage ( )
- scrollRectToVisible ( )
- setSelectionStart ( )
- setForeground ( )
- setPreferredSize ( )
- removeHyperlinkListener ( )
Related Classes
- java.io.File
- java.net.URL
- java.util.logging.Level
- java.awt.Color
- java.awt.event.ActionEvent
- java.awt.event.ActionListener
- javax.swing.JPanel
- java.awt.Dimension
- javax.swing.JFrame
- java.awt.Font
- javax.swing.JLabel
- javax.swing.JButton
- java.awt.BorderLayout
- javax.swing.JOptionPane
- java.awt.Component
- javax.swing.JScrollPane
- java.awt.Rectangle
- javax.swing.JTextField
- javax.swing.SwingUtilities
- javax.swing.JComponent
- javax.swing.UIManager
- javax.swing.JComboBox
- javax.swing.JTextArea
- javax.swing.BorderFactory
- java.awt.Insets
Java Code Examples for javax.swing.JEditorPane#removeHyperlinkListener()
The following examples show how to use
javax.swing.JEditorPane#removeHyperlinkListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GHelpHTMLEditorKit.java From ghidra with Apache License 2.0 | 6 votes |
@Override public void install(JEditorPane c) { super.install(c); delegateListeners = c.getHyperlinkListeners(); for (HyperlinkListener listener : delegateListeners) { c.removeHyperlinkListener(listener); } resolverHyperlinkListener = new ResolverHyperlinkListener(); c.addHyperlinkListener(resolverHyperlinkListener); // add a listener to report trace information c.addPropertyChangeListener(new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { String propertyName = evt.getPropertyName(); if ("page".equals(propertyName)) { Msg.trace(this, "Page loaded: " + evt.getNewValue()); } } }); }
Example 2
Source File: GHelpHTMLEditorKit.java From ghidra with Apache License 2.0 | 5 votes |
@Override public void deinstall(JEditorPane c) { c.removeHyperlinkListener(resolverHyperlinkListener); for (HyperlinkListener listener : delegateListeners) { c.addHyperlinkListener(listener); } super.deinstall(c); }