Non-modal Dialog creation
Hi,
Is it currently possible to create a non-modal dialog?
It seems that when using DialogBuilder.showNotModal, or extending DialogWrapper and calling setModal(false) still causes the confirm/cancel buttons to appear.
My use case is to be able to create a new window, which I can embed some visuals into. I understand the diagram API is closed source, but I am wanting to achieve something similiar by creating a new JBTab/non-modal if possible.
Hopefully someone can shed some light on this matter :)
请先登录再写评论。
The whole purpose of these API is to create standard-looking dialogs with the standard set of buttons. If you don't want the standard set of buttons, you can use the standard Swing APIs, such as the JFrame class, directly.
Thank you for your response. Instantiating a JFrame directly does work as expected, although it's somewhat confusing that the setModal(false) method did nothing however
For anyone passing by, I went with an fileEditorProvider implementation which adds an extra tab beneath the normal text window.
Note - It is important to to implement both FileEditorProvider and DumbAware, otherwise the tabs do not appear for Xml/Dom files for some reason!