I've run into a problem that can only be solved if I had access to AutoCompletion's isPopupVisible method, which unfortunately is marked as private. I have a KeyListener that intercepts keyPressed in order to provide syntax indentation (among other things). It turns out that it overrides whatever key events are set up by AutoComplete, so if I press enter when the AutoComplete popup is visible, it is intercepted by my KeyListener and a newline is inserted.
I could solve this issue by simply not running my KeyListener when the AutoComplete popup is visible, but there is no way for me to determine this! I've attempted all sorts of ugly hacks to figure out when the popup is visible without any luck. I assume this will probably never be added, because I found a thread over a year ago in which the same thing was requested. If you have any advice, I would really appreciate it.