I am developing a module which has a project component. After installing (and after changing settings in the) project component, I want to display (not only log) a message dialog, if certain conditions in the project are not met.
I want to be able to display a dialog like the one by FirstSpirit:
Until now, I have tried unsuccessfully...
... using the OperationAgent, which is not available in the context of the ServerManager
... manually creating a JFrame and using
which throws a HeadlessException (because in that context, Java is running in headless mode, which limits usable UI elements); also, using that method with null as component or UiAgent.getApplicationWindow() as component did not work
At this point I am asking myself, whether it is even intended that one should be able to display message dialogs within the ServerManager.
Thank you for your help and suggestions in advance!