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

14
LINES

< > BotCompany Repo | #1004495 // Full-Screen Test 1 [displays something, but you can't type]

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

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

!752

p {
  GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment()
    .getDefaultScreenDevice();
  if (!gd.isFullScreenSupported())
    fail("No full-screen mode supported!");
  final new JWindow window;
  window.add(jflow(jlabel("Hello world"),
    jPreferWidth(200, new JTextField), jbutton("Close", r {
    window.dispose();
  })));
  gd.setFullScreenWindow(window);
}

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: #1004495
Snippet name: Full-Screen Test 1 [displays something, but you can't type]
Eternal ID of this version: #1004495/1
Text MD5: b0ca41ceb9ace7044e973617b169066c
Transpilation MD5: 7ed572f45ac1cc565a0dcc57302b337e
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:34:02
Source code size: 400 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 533 / 568
Referenced in: [show references]