List of usage examples for javax.swing.text JTextComponent addInputMethodListener
public void addInputMethodListener(InputMethodListener l)
From source file:Main.java
private static void addJTextComponentListeners(JTextComponent c, Object... objs) { if (c == null) return;/* w ww.j a v a 2s .c o m*/ addJContainerListeners(c, objs); CaretListener caretListener = search(objs, CaretListener.class); InputMethodListener inputMethodListener = search(objs, InputMethodListener.class); if (caretListener != null) c.addCaretListener(caretListener); if (inputMethodListener != null) c.addInputMethodListener(inputMethodListener); }