1 | static JWindow showFullScreen_jwindow(final JComponent c) { |
2 | ret (JWindow) swingAndWait(func { |
3 | GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment() |
4 | .getDefaultScreenDevice(); |
5 | if (!gd.isFullScreenSupported()) |
6 | fail("No full-screen mode supported!"); |
7 | final new JWindow window; |
8 | registerEscape_jwindow(window, r { disposeWindow(window) }); |
9 | window.add(wrap(c)); |
10 | gd.setFullScreenWindow(window); |
11 | ret window; |
12 | }); |
13 | } |
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: | 441 / 627 |
Version history: | 3 change(s) |
Referenced in: | [show references] |