My popup always covered other windows

Answered

Hello, Everyone I got into a problem these  dasy, my popup always covered other windows ,it's like this

I want to let my popup like a normal window and not aways covered other windows

I have read ComponentPopupBuilder.class many times , I really did't find way to deal it

Here is my code

private void customerPopupDialog(){
JBPopupFactory instance = JBPopupFactory.getInstance();
JButton button = new JButton("Hello Idea Plugin");
JPanel panel = new JPanel();
panel.setSize(40,20);
panel.add(button);
button.addActionListener(e -> new MyDialog(Application.project,"Test").show());
instance.createComponentPopupBuilder(panel, new JBLabel())
.setTitle("Customer Popup Dialog")
.setMovable(true)
.setResizable(true)
.setMayBeParent(true)
.setDimensionServiceKey(null,"com.yatoufang.test",true)
.setNormalWindowLevel(true)
.setMinSize(new Dimension(600,300))
.createPopup()
.showInFocusCenter();
}

Does anyone know how to solve it

5 comments
Comment actions Permalink

Sorry, I don't understand how a popup would not cover underlying windows by default. Please show a screenshot from existing UI to clarify what you want to achieve.

0
Comment actions Permalink

ok,I made a new screetshot. Is that mean popup always a top level window

0
Comment actions Permalink

hse Could you please file a bug in our tracker https://youtrack.jetbrains.com/issues/IDEA and specify exact IDE, OS versions? Thanks.

0
Comment actions Permalink

Thanks for all the replies

0

Please sign in to leave a comment.