We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
bace3ea
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: