java - JavaFX Dialog and Alert appear behind main stage in RedHat -


i making use of javafx's built in alert , dialog classes work great in windows , when running eclipse within windows, appear behind parent window when running on target hardware running redhat 6. have tried tweaking various things including:

  • primarystage.initstyle(stagestyle.undecorated);

  • primarystage.setfullscreen(true);

  • alert.initowner(primarystage) , alert.initowner(primarystage.getowner())

  • alert.initmodality(modality.window_modal) , alert.initmodality(modality.application_modal)

  • alert.initstyle(stagestyle.***) *** being possible styles.

the way have been able alerts , dialogs remain on top calling alert.initstyle(stagestyle.utility) creates window cross button not want. ideally prefer bordered window without additional buttons, or undecorated window should able style achieve bordered look.

i have read of similar issues in using windows doesn't work ubuntu does. haven't been able find open issues or solutions in case.

i using java 8 update 77.

i have experienced similar problem: alerts show in front of primary stage in windows 10, yet behind stage when running program on ubuntu. alert.initowner(primarystage) solved problem me.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -