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#addHierarchyListener()
The following examples show how to use
javax.swing.text.JTextComponent#addHierarchyListener() .
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: FileNameController.java From netbeans with Apache License 2.0 | 6 votes |
private void init() { Component cboxEditorComp = component.getEditor().getEditorComponent(); fileNamePatternEditor = (JTextComponent) cboxEditorComp; fileNamePatternWatcher = new FileNamePatternWatcher(fileNamePatternEditor); fileNamePatternEditor.addFocusListener(fileNamePatternWatcher); fileNamePatternEditor.addHierarchyListener(fileNamePatternWatcher); fileNamePatternEditor.getDocument().addDocumentListener( new FileNameChangeListener()); defaultColor = component.getForeground(); component.setEditable(true); List<String> entries = FindDialogMemory.getDefault().getFileNamePatterns(); if (!entries.isEmpty()) { component.setModel(new ListComboBoxModel<String>(entries, true)); } }
Example 2
Source File: AnimationAutoCompletion.java From 3Dscript with BSD 2-Clause "Simplified" License | 4 votes |
void addTo(JTextComponent tc) { tc.addFocusListener(this); tc.addHierarchyListener(this); }