Nov 22

wwjava in fullscreen

Tag: codedenis @ 1:28 pm

to have wwjava run in fullscreen, try the following:

  • - instantiate your worlwind JFrame (WWFrame in supplied demos)
  • - make it non-resizable (wwFrame.setResizable(false);)
  • - finally type the following incantation:
GraphicsDevice graphicsDevice = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
graphicsDevice.setFullScreenWindow(wwFrame);
wwFrame.setVisible(true);

where wwFrame is your worldwind frame.

Bookmark this page on: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Reddit
  • StumbleUpon
  • Technorati

Leave a Reply