This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Should use DatabaseServer#connectAsync instead of DatabaseServer#connect in JdbcConnectionsPanel.
I'd need a way to notify the user if connecting is not successful, the reconnectAsync method doesn't seem to provide any means for that. David, would you have any tips?
Well, what you can do is run the connect on a background task and if you get an error, you can post a dialog saying the connection was not successful. Or if you prefer you can run it on a background task so that the IDE doesn't freeze, but have a modal dialog with a progress bar saying something like "Please wait while the connection is established."
Thanks David for the tips. I don't know why but I somehow thought that the plain reconnect method has to be called in EDT (which is obviously not the case) and was looking for a reconnectAsync method that would return a future of some sort (and maybe also throw an exception like the reconnect method). But posting the invocation of reconnect to another thread should work fine for me.