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

40
LINES

< > BotCompany Repo | #1005671 // Test showFullScreenImage_disposeOnClick with Substance (BUG test 2)

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

Uses 3874K of libraries. Click here for Pure Java version (2421L/17K/58K).

1  
!752
2  
3  
lib 1005652 // Substance
4  
lib 1003441 // Trident (required by Substance)
5  
6  
import org.pushingpixels.substance.api.*;
7  
import org.pushingpixels.substance.api.skin.*;
8  
9  
static JFrame showFullScreen(JComponent c) {
10  
  GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment()
11  
    .getDefaultScreenDevice();
12  
  if (!gd.isFullScreenSupported())
13  
    fail("No full-screen mode supported!");
14  
  final new JFrame window;
15  
  
16  
  // Trying to fix bug
17  
  window.setUndecorated(false);
18  
  
19  
  registerEscape(window, r { window.dispose() });
20  
  window.add(wrap(c));
21  
  gd.setFullScreenWindow(window);
22  
  ret window;
23  
}
24  
25  
p-awt {
26  
  /*
27  
  ClassLoader cl = main.class.getClassLoader();
28  
  UIManager.getDefaults().put("ClassLoader", cl);
29  
  Thread.currentThread().setContextClassLoader(cl);
30  
  S skinName = "Creme";
31  
  S skinClassName = "org.pushingpixels.substance.api.skin." + addSuffix(skinName, "Skin");
32  
  SubstanceSkin skin = (SubstanceSkin) nuObject(cl.loadClass(skinClassName));
33  
  SubstanceLookAndFeel.setSkin(skin);
34  
  updateLookAndFeelOnAllWindows();*/
35  
  
36  
  substanceLAF_version = "#1005653";
37  
  substanceLAF();
38  
  
39  
  showFullScreenImage_disposeOnClick("#1005640");
40  
}

Author comment

Began life as a copy of #1005670

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: #1005671
Snippet name: Test showFullScreenImage_disposeOnClick with Substance (BUG test 2)
Eternal ID of this version: #1005671/1
Text MD5: c739bf87dfc5ec8b89bbbb510afa66aa
Transpilation MD5: 7e396ab7fed957372f7d257180c5e9fc
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-02 16:27:44
Source code size: 1190 bytes / 40 lines
Pitched / IR pitched: No / No
Views / Downloads: 493 / 617
Referenced in: [show references]