Show a custom window on action

Hi there,
could you please point to me the appropriate article/example... I started to implement a simple plugin which gets project's source files and converts them into something (with a help of external library). I can add an item menu and handle actions, but can't understand how to show my custom window (with plugin settings) on user's click?
Something like:

public class ConvertAction extends AnAction {

    public void
actionPerformed(AnActionEvent anActionEvent) {
        ConvertToolForm convertToolForm = new ConvertToolForm();
        convertToolForm.createWindow(anActionEvent); // how to show it??


1 comment
Comment actions Permalink

Hi Victor,

if your window is a dialog extending JDialog (e.g. built using the UI designer) you can display it like:

dialog = convertToolForm.createWindow(anActionEvent);

Please sign in to leave a comment.