12-10-2010 11:06 AM
I'm trying to create a browser field, look for redirects and close the page, hence moving back to the last page. Listening on the browser field after requesting a page, and getting calls such as documentLoad(), I try to close the screen there. But I get a IllegalStateException: close() called when not displayed.
I could not find anywhere else to listen for redirect events. Is there a better place to look for events in browserField.addListener(...) ? One of the methods, BrowserFieldListener.downloadProgress() doesn't event get called.
Solved! Go to Solution.
12-13-2010 03:44 PM
Did you wrap the close call in an invokeLater call? Refer to the link below for an example.
Update a screen on the Main Event Thread