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.
Please sign in to leave a comment.
You need to create a JPanel with your components and pass it to JBPopupFactory.getInstance().createComponentPopupBuilder().
thanks, ok I have my Panel, can u just give me a small example, how I have to pass it?
You pass the panel instance as the first parameter to createComponentPopupBuilder(). What exactly is not clear about this?