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

9
LINES

< > BotCompany Repo | #1008108 // addToConsole3 (add above input field)

JavaX fragment (include)

1  
static void addToConsole3(Component toAdd) {
2  
  JFrame frame = consoleFrame();
3  
  if (frame == null) ret;
4  
  Container cp = frame.getContentPane();
5  
  Container cp2 = (Container) getCenterComponent(cp);
6  
  Container cp3 = (Container) getCenterComponent(cp2);
7  
  replaceCenterComponent(cp2, centerAndSouth(cp3, toAdd));
8  
  validateFrame(frame);
9  
}

Author comment

Began life as a copy of #1004954

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008108
Snippet name: addToConsole3 (add above input field)
Eternal ID of this version: #1008108/4
Text MD5: aa4d528b7f9bcf644b7b7b49855bead6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-24 22:44:54
Source code size: 346 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 551 / 557
Version history: 3 change(s)
Referenced in: [show references]