Show complex dialog as an action?

I see how to add a complex dialog (via JComponent) in the settings panel.
However, how can I display a similarly complex dialog as a result of an action?

I see com.intellij.openapi.ui.Messages but it's for uber-simple dialogs (ex: one-line inputs).

And yes, part of the problem is that I'm not actually familiar with JComponent

1 comment
Comment actions Permalink

Use the DialogWrapper class as the base class of your dialog. To build the contents of the dialog, you can either use the IntelliJ IDEA UI designer or to build it from code using the Swing layout managers. You can find an abundance of examples using both approaches in the source code of IntelliJ IDEA and open-source plugins.


Please sign in to leave a comment.