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)

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

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