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

14
LINES

< > BotCompany Repo | #1004497 // Full-Screen Test 2 - this one works fine! Exitable with Alt+F4, at least here it does so

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (302L/3K/10K).

1  
!752
2  
3  
p {
4  
  GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment()
5  
    .getDefaultScreenDevice();
6  
  if (!gd.isFullScreenSupported())
7  
    fail("No full-screen mode supported!");
8  
  final new JFrame window;
9  
  window.add(jflow(jlabel("Hello world"),
10  
    jPreferWidth(200, new JTextField), jbutton("Close", r {
11  
    window.dispose();
12  
  })));
13  
  gd.setFullScreenWindow(window);
14  
}

Author comment

Began life as a copy of #1004495

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004497
Snippet name: Full-Screen Test 2 - this one works fine! Exitable with Alt+F4, at least here it does so
Eternal ID of this version: #1004497/1
Text MD5: e7798d49abdffa2bef6322929dabad08
Transpilation MD5: 576509bc7a23e26a2b9ec48cd823279f
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-18 22:41:47
Source code size: 399 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 550 / 610
Referenced in: [show references]