当前位置: 动力学知识库 > 问答 > 编程问答 >

java - After modal window, parent no longer resizable

问题描述:

I have a root stage which is resizable.

At some point a button click opens a new stage:

Stage originalStage = ...

Stage stage = new Stage();

stage.initModality(Modality.WINDOW_MODAL);

stage.initOwner(originalStage);

However when I hide() or close() the new modal stage, the originalStage becomes unresizable. At the time of test it is maximized and before/while the modal window is open I see a minimize/maximize/close button.

After the modal window closes I the maximize button disappears and I can also no longer resize it (which I could before).

I'm running the oracle JDK 1.8.0_65 on linux.

Is this a bug or am I doing something wrong?

分享给朋友:
您可能感兴趣的文章:
随机阅读: