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

!752

static JFrame frame;

p {
  frame = showCenterFrame("Green...", 200, 200,
    singleColorPanel(Color.GREEN));
  swingAfter(frame, 5000, runnable {
    setFrameContents(frame, singleColorPanel(Color.BLUE));
    setFrameTitle(frame, "Blue!");
  });
}

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: 530 / 581
Referenced in: [show references]