modality

changing scenes in full screen

南笙酒味 提交于 2019-12-11 23:03:54
问题 I have read several questions/solutions here that are related to my problems. but nothing seems to work. so I have a primarystage in fullscreen mode, say if i click a button it changes the scene. but the stage seems to display the taskbar. also I resolved the issue by adding this to all of the scene methods.. stage.setFullScreen(false); stage.setFullScreen(true); BUT, the transition in scenes is not that fluid. first it goes to desktop and back to fullscreen.. which is not the ideal solution.

can I make JDialog to be modal using native system window as a parent?

早过忘川 提交于 2019-12-11 03:17:59
问题 I have a JDialog window. I need to make it modal, but the parent is not Java window, but native Windows OS window. Is it possible? 回答1: No, you can't. You cannot even achieve reference not only to native windows but even to windows created by java application running in other JVM. But you can create dummy window (Window, not Frame or JFrame), set its size as 0 and use it as an parent to any dialog. I do not know what is your concrete problem but sometimes the way I mentioned may help. 来源: