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

17
LINES

< > BotCompany Repo | #1008470 // Show random english words in the middle of the screen [WORKS]

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

Libraryless. Click here for Pure Java version (6274L/42K/153K).

1  
!7
2  
3  
static JLabel l;
4  
5  
p {
6  
  randomEnglishWordFromDictionary(); // init
7  
  awt {
8  
    showFullScreen(jTiledBackground(#1007195,
9  
      setForeground(Color.white,
10  
      setFontSize(40,
11  
      centerLabel(
12  
      standardLabelPopupMenu(
13  
      l = new JLabel("BLA!")))))));
14  
      
15  
    awtEvery(l, 2000, r { l.setText(randomEnglishWordFromDictionary()) });
16  
  }
17  
}

Author comment

Began life as a copy of #1007194

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008470
Snippet name: Show random english words in the middle of the screen [WORKS]
Eternal ID of this version: #1008470/5
Text MD5: 94fb3e6ee722f2c45e69ed046a7ef579
Transpilation MD5: ed332705c1ab20f73758e85aabd0bd44
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-07 13:23:59
Source code size: 368 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 455 / 602
Version history: 4 change(s)
Referenced in: [show references]