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).

!7

static JLabel l;

p {
  randomEnglishWordFromDictionary(); // init
  awt {
    showFullScreen(jTiledBackground(#1007195,
      setForeground(Color.white,
      setFontSize(40,
      centerLabel(
      standardLabelPopupMenu(
      l = new JLabel("BLA!")))))));
      
    awtEvery(l, 2000, r { l.setText(randomEnglishWordFromDictionary()) });
  }
}

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: 454 / 600
Version history: 4 change(s)
Referenced in: #1009671 - Show thoughts in the middle of screen [OK]
#1014098 - Fullscreen text with word wrap & background, centered [OK]