Using autocomplete library version 3.2.0
Sometimes the hint popup windows don't get dismissed and persist in the foreground.

How to reproduce
- bring up the popup hint windows
- click on something outside the popups that will change the component hierarchy
- the popups will hang around and you can't dismiss them.
Looked at the source code and I think the fix is a missing call to hideChildWindows() in the removeFrom(Window w) method in AutoCompletion.java:
/**
-
Listens for events in the parent window of the text component with
-
auto-completion enabled.
*/
private class ParentWindowListener extends ComponentAdapter implements
WindowFocusListener {
public void addTo(Window w) {
w.addComponentListener(this);
w.addWindowFocusListener(this);
}
@OverRide
public void componentHidden(ComponentEvent e) {
hideChildWindows();
}
@OverRide
public void componentMoved(ComponentEvent e) {
hideChildWindows();
}
@OverRide
public void componentResized(ComponentEvent e) {
hideChildWindows();
}
public void removeFrom(Window w) {
hideChildWindows(); <====================================. Missing!
w.removeComponentListener(this);
w.removeWindowFocusListener(this);
}
@OverRide
public void windowGainedFocus(WindowEvent e) {
}
@OverRide
public void windowLostFocus(WindowEvent e) {
hideChildWindows();
}
}
Alternatively it can be fixed by adding hideChildWindows() to the hierarchyChanged(HierarchyEvent e). method.
Using autocomplete library version 3.2.0
Sometimes the hint popup windows don't get dismissed and persist in the foreground.

How to reproduce
Looked at the source code and I think the fix is a missing call to hideChildWindows() in the removeFrom(Window w) method in AutoCompletion.java:
/**
Listens for events in the parent window of the text component with
auto-completion enabled.
*/
private class ParentWindowListener extends ComponentAdapter implements
WindowFocusListener {
public void addTo(Window w) {
w.addComponentListener(this);
w.addWindowFocusListener(this);
}
@OverRide
public void componentHidden(ComponentEvent e) {
hideChildWindows();
}
@OverRide
public void componentMoved(ComponentEvent e) {
hideChildWindows();
}
@OverRide
public void componentResized(ComponentEvent e) {
hideChildWindows();
}
public void removeFrom(Window w) {
hideChildWindows(); <====================================. Missing!
w.removeComponentListener(this);
w.removeWindowFocusListener(this);
}
@OverRide
public void windowGainedFocus(WindowEvent e) {
}
@OverRide
public void windowLostFocus(WindowEvent e) {
hideChildWindows();
}
}
Alternatively it can be fixed by adding hideChildWindows() to the hierarchyChanged(HierarchyEvent e). method.