- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Displaying Message Dialog in ServerManager in Project Settings
Hello,
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
JOptionPane.showMessageDialog(...)
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!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
iirc your only option to display custom GUIs in the server manager is via method getGui(java.awt.Frame) in class Configuration which you may already use to display your custom configuration options.
Maybe its an option to check the project conditions when the closes your custom configuration dialog..
Br, Hendrik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
iirc your only option to display custom GUIs in the server manager is via method getGui(java.awt.Frame) in class Configuration which you may already use to display your custom configuration options.
Maybe its an option to check the project conditions when the closes your custom configuration dialog..
Br, Hendrik

