2

I made my application to be full screen in exclusive mode but when I show an input dialog the application is minimized. I want the application to stay full screen and the input dialog to be show over it.

This is how I render my application full screen:

setUndecorated(true);
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice gs = ge.getDefaultScreenDevice();
gs.setFullScreenWindow(this);
validate();

Edit:

This is how I open the dialog:

JOptionPane.showMessageDialog(StartingPoint.this,txt, "You are on: " + planet, JOptionPane.INFORMATION_MESSAGE, icon);
mKorbel
  • 109,525
  • 20
  • 134
  • 319
Alex
  • 847
  • 3
  • 15
  • 23

1 Answers1

2
but when I show an input dialog the application is minimized

1) I can't to simulating this issue and simly isn't possible without additional code iconofied for Full-Screen Application

2) please to check Programming Tips about AWT/Swing

3) setParent (not possible corectly for JFrame) for input dialog

4) to check if isn't there more than one Top-level Container with setModal / ModalityTypes

mKorbel
  • 109,525
  • 20
  • 134
  • 319