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

7
LINES

< > BotCompany Repo | #1008672 // findButtons - find JButtons by text

JavaX fragment (include)

1  
static L<JButton> findButtons(Component c, S name) {
2  
  new L<JButton> l;
3  
  for (JButton b : childrenOfType(c, JButton.class))
4  
    if (eq(b.getText(), name))
5  
      l.add(b);
6  
  ret l;
7  
}

Author comment

Began life as a copy of #1007248

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: #1008672
Snippet name: findButtons - find JButtons by text
Eternal ID of this version: #1008672/1
Text MD5: 0d5a908eb1993a597c09432c27d08af4
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-27 23:37:34
Source code size: 189 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 516 / 557
Referenced in: [show references]