Libraryless. Click here for Pure Java version (10346L/72K).
1 | abstract sclass DynFullscreen > DynModule { |
2 | transient JFrame fullScreenFrame; |
3 | |
4 | void goFullscreen enter { |
5 | if (fullScreenFrame != null) ret with activateFrame(fullScreenFrame); |
6 | fullScreenFrame = showFullScreen(fullscreenVisualize()); |
7 | onFrameClose(fullScreenFrame, r { fullScreenFrame = null; }); |
8 | } |
9 | |
10 | JComponent fullscreenVisualize() { null; } |
11 | |
12 | void exitFullscreen enter { |
13 | disposeFrame(fullScreenFrame); |
14 | } |
15 | |
16 | // works only when we are in fullscreen mode |
17 | void setFullscreenComponent(JComponent c) enter { |
18 | setFrameContents(fullScreenFrame, c); |
19 | } |
20 | |
21 | // switch to result of fullscreenVisualize() |
22 | void defaultScreen enter { |
23 | setFrameContents(fullScreenFrame, fullscreenVisualize()); |
24 | } |
25 | } |
Began life as a copy of #1027028
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027030 |
Snippet name: | DynFullscreen |
Eternal ID of this version: | #1027030/7 |
Text MD5: | d4f109153418eccc01ccc26b5dc15955 |
Transpilation MD5: | f3d045a6a3c2c689472d818b0c3417d4 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-11 19:29:49 |
Source code size: | 754 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 304 / 676 |
Version history: | 6 change(s) |
Referenced in: | [show references] |