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

12
LINES

< > BotCompany Repo | #1003374 // Show JFrame filled with a single color (then change to another color)

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

Libraryless. Click here for Pure Java version (147L/2K/6K).

1  
!752
2  
3  
static JFrame frame;
4  
5  
p {
6  
  frame = showCenterFrame("Green...", 200, 200,
7  
    singleColorPanel(Color.GREEN));
8  
  swingAfter(frame, 5000, runnable {
9  
    setFrameContents(frame, singleColorPanel(Color.BLUE));
10  
    setFrameTitle(frame, "Blue!");
11  
  });
12  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003374
Snippet name: Show JFrame filled with a single color (then change to another color)
Eternal ID of this version: #1003374/1
Text MD5: a56fb15bfbb43a28ac63884215f52ad4
Transpilation MD5: d94dd49e244355ae4beed653daf8720a
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-06-28 21:10:40
Source code size: 265 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 617 / 689
Referenced in: [show references]