Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1016088 // showFullScreen_jwindow - test with JWindow instead of JFrame

JavaX fragment (include)

static JWindow showFullScreen_jwindow(final JComponent c) {
  ret (JWindow) swingAndWait(func {
    GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment()
      .getDefaultScreenDevice();
    if (!gd.isFullScreenSupported())
      fail("No full-screen mode supported!");
    final new JWindow window;
    registerEscape_jwindow(window, r { disposeWindow(window) });
    window.add(wrap(c));
    gd.setFullScreenWindow(window);
    ret window;
  });
}

Author comment

Began life as a copy of #1004498

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016088
Snippet name: showFullScreen_jwindow - test with JWindow instead of JFrame
Eternal ID of this version: #1016088/4
Text MD5: 52e5cdffeb851f3602d23cc69a3795dd
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-06 00:15:06
Source code size: 477 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 440 / 625
Version history: 3 change(s)
Referenced in: [show references]