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

11
LINES

< > BotCompany Repo | #1003452 // Test making components in wrong thread with Substance LAF

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

Libraryless. Click here for Pure Java version (1455L/10K/33K).

!752

p {
  substanceLAF();
  
  // Substance seems picky, we now need to use the AWT thread.
  
  JComponent c = centerAndSouth(centeredHtmlLabel("Hello world!"), new JButton("Yo!"));
  
  showFrame(c);
}

Author comment

Began life as a copy of #1003451

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

Comments [hide]

ID Author/Program Comment Date
1232 stefan Prints error, but works fine. Huh. 2016-07-03 17:18:39

add comment

Snippet ID: #1003452
Snippet name: Test making components in wrong thread with Substance LAF
Eternal ID of this version: #1003452/1
Text MD5: f4687a780eb3a49e90d34a927db637c9
Transpilation MD5: e3cce11579e0fc73b4c2c41352a3afec
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-03 17:15:53
Source code size: 215 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 865 / 914
Referenced in: [show references]