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

12
LINES

< > BotCompany Repo | #1004933 - focusConsole

JavaX fragment (include)

1  
static void focusConsole(S s) {
2  
  setConsoleInput(s);
3  
  focusConsole();
4  
}
5  
6  
static void focusConsole() {
7  
  JComponent tf = consoleInputFieldOrComboBox();
8  
  if (tf != null) {
9  
    //print("Focusing console");
10  
    tf.requestFocus();
11  
  }
12  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004933
Snippet name: focusConsole
Eternal ID of this version: #1004933/3
Text MD5: 06cd4d8394049f8accad4119f307cc05
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-06 20:42:12
Source code size: 245 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 467 / 464
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1004933 & http://1004933.tinybrain.de