Just because you create a method that takes a FocusEvent, doesn't mean it gets called automatically. In Swing (and AWT), you need to explicitly register listeners, in this case a FocusListener. You can make its focusLost method call your existing DOBFocusLost method.