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

18
LINES

< > BotCompany Repo | #1001734 // Get Active Swing Component Bot (uses multiport)

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

Libraryless. Click here for Pure Java version (693L/5K/17K).

!747

m {
  p {
    addToMultiPortSilent("Get Active Swing Component Bot.");
  }
  
  static S answer(S s) {
    if (match3("get focused component", s) || match3("get active component", s))
      ret weakref(KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner());
    ret null;
  }
  
  // make translator happy
  
  !include #1001735 // unquote
  !include #1000709 // formatSnippetID
}

Author comment

Began life as a copy of #1001661

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001734
Snippet name: Get Active Swing Component Bot (uses multiport)
Eternal ID of this version: #1001734/1
Text MD5: dd7410f5fb30c68462aae005baee34a5
Transpilation MD5: 3071cb71b5cfc59ee5c867b9de17e626
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-11 01:44:17
Source code size: 419 bytes / 18 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 640 / 965
Referenced in: #1001738 - Get active Swing component (search all VMs)
#1001756 - Get Selected Table Line Helper Bot (searches current VM)
#3000202 - Answer for stefanreich (>> T conversion bot)
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)