/** * Returns the single instance. * * @return The single instance. */ public static JTextObserver getInstance() { if (singleton == null) { singleton = new JTextObserver(); } return singleton; }
/** * Returns the single instance. * * @return The single instance. */ public static JTextObserver getInstance() { if (singleton == null) { singleton = new JTextObserver(); } return singleton; }
/** * Returns the single instance. * * @return The single instance. */ public static JTextObserver getInstance() { if (singleton == null) { singleton = new JTextObserver(); } return singleton; }
/** * Adds this instance as a listener for the specified text component. * * @param t the text component. */ public static void addTextComponent(final JTextComponent t) { if (singleton == null) { singleton = new JTextObserver(); } t.addFocusListener(singleton); }
/** * Removes this instance as a listener for the specified text component. * * @param t the text component. */ public static void removeTextComponent(final JTextComponent t) { if (singleton == null) { singleton = new JTextObserver(); } t.removeFocusListener(singleton); }
/** * Adds this instance as a listener for the specified text component. * * @param t the text component. */ public static void addTextComponent(final JTextComponent t) { if (singleton == null) { singleton = new JTextObserver(); } t.addFocusListener(singleton); }
/** * Removes this instance as a listener for the specified text component. * * @param t the text component. */ public static void removeTextComponent(final JTextComponent t) { if (singleton == null) { singleton = new JTextObserver(); } t.removeFocusListener(singleton); }
/** * Adds this instance as a listener for the specified text component. * * @param t the text component. */ public static void addTextComponent(final JTextComponent t) { if (singleton == null) { singleton = new JTextObserver(); } t.addFocusListener(singleton); }
/** * Removes this instance as a listener for the specified text component. * * @param t the text component. */ public static void removeTextComponent(final JTextComponent t) { if (singleton == null) { singleton = new JTextObserver(); } t.removeFocusListener(singleton); }