How can I create a popup window with a Jtextfield and a Jbutton in it?

I want to create a customized popup window in my intelliJ Plugin. It has to be a popup and not a toolwindow. I found the JBPopup but I don t know how to fill it with a textfield & button.

3 comments
Comment actions Permalink

You need to create a JPanel with your components and pass it to JBPopupFactory.getInstance().createComponentPopupBuilder().

0
Comment actions Permalink

thanks, ok I have my Panel, can u just give me a small example, how I have to pass it?

0
Comment actions Permalink

You pass the panel instance as the first parameter to createComponentPopupBuilder(). What exactly is not clear about this?

0

Please sign in to leave a comment.