Available Methods
- getDocument ( )
- getClientProperty ( )
- getCaretPosition ( )
- getCaret ( )
- getSelectionStart ( )
- isEditable ( )
- putClientProperty ( )
- getSelectionEnd ( )
- getUI ( )
- addPropertyChangeListener ( )
- isEnabled ( )
- setText ( )
- addCaretListener ( )
- setCaretPosition ( )
- getHighlighter ( )
- moveCaretPosition ( )
- getText ( )
- scrollRectToVisible ( )
- setBorder ( )
- modelToView ( )
- KeyBinding ( )
- getSelectedText ( )
- replaceSelection ( )
- hasFocus ( )
- select ( )
- setEditable ( )
- removePropertyChangeListener ( )
- removeAll ( )
- getParent ( )
- addKeyListener ( )
- addFocusListener ( )
- setFont ( )
- selectAll ( )
- getDisabledTextColor ( )
- viewToModel ( )
- requestFocus ( )
- add ( )
- setForeground ( )
- removeMouseListener ( )
- repaint ( )
- getVisibleRect ( )
- setBackground ( )
- DropLocation ( )
- paste ( )
- isShowing ( )
- removeMouseMotionListener ( )
- setSelectionEnd ( )
- getActionMap ( )
- requestFocusInWindow ( )
- getKeymap ( )
- setTransferHandler ( )
- cut ( )
- setSelectionStart ( )
- addHierarchyListener ( )
- copy ( )
- getWidth ( )
- getInsets ( )
- revalidate ( )
- getBorder ( )
- getForeground ( )
- getHeight ( )
- addMouseMotionListener ( )
Related Classes
- java.util.Collections
- java.util.logging.Logger
- java.util.logging.Level
- java.awt.Color
- java.awt.event.ActionEvent
- javax.swing.JPanel
- java.awt.Dimension
- java.awt.Font
- java.awt.event.MouseEvent
- javax.swing.JLabel
- java.awt.Graphics
- javax.swing.JButton
- java.awt.event.KeyEvent
- java.awt.BorderLayout
- java.awt.Component
- java.awt.Rectangle
- java.awt.Toolkit
- javax.swing.SwingUtilities
- java.awt.Point
- javax.swing.JComponent
- javax.swing.JComboBox
- javax.lang.model.element.TypeElement
- java.awt.Container
- javax.swing.event.DocumentEvent
- javax.swing.KeyStroke
Java Code Examples for javax.swing.text.JTextComponent#addMouseMotionListener()
The following examples show how to use
javax.swing.text.JTextComponent#addMouseMotionListener() .
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: DarkTextFieldUI.java From darklaf with MIT License | 5 votes |
@Override protected void installListeners() { super.installListeners(); JTextComponent c = getComponent(); c.addMouseListener(this); c.addMouseMotionListener(mouseMotionListener); c.addKeyListener(keyListener); }
Example 2
Source File: DarculaTextFieldUI.java From Darcula with Apache License 2.0 | 5 votes |
@Override protected void installListeners() { super.installListeners(); final JTextComponent c = getComponent(); c.addFocusListener(myFocusListener); c.addMouseMotionListener(myMouseMotionListener); c.addMouseListener(myMouseListener); }
Example 3
Source File: CurrentLineHighlighter.java From nextreports-designer with Apache License 2.0 | 5 votes |
public static void install(JTextComponent component) { try { Object tag = component.getHighlighter().addHighlight(0, 0, painter); component.putClientProperty(LINE_HIGHLIGHT, tag); component.putClientProperty(PREVIOUS_CARET, new Integer(component.getCaretPosition())); component.addCaretListener(caretListener); component.addMouseListener(mouseListener); component.addMouseMotionListener(mouseListener); } catch(BadLocationException e) { // ignore } }