// add a textlistener that is notified on each change of the controlvalue...
xTextComponent = (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, xTFControl);
XWindow xTFWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xTFControl);
xTFWindow.addFocusListener(_xFocusListener);
xTextComponent.addTextListener(_xTextListener);
xTFWindow.addKeyListener(this);
} catch (com.sun.star.uno.Exception ex) {
/* perform individual exception handling here.
* Possible exception types are:
* com.sun.star.lang.IllegalArgumentException,
* com.sun.star.lang.WrappedTargetException,