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

10
LINES

< > BotCompany Repo | #1004255 // inFrame - filter components list by frame name

JavaX fragment (include)

static <A extends Component> L<A> inFrame(S titleFragment, L<A> l) {
  new L<A> l2;
  for (A a : l) {
    JFrame f = getFrame(a);
    continue if f == null;
    if (igrep(getFrameTitle(f), titleFragment))
      l2.add(a);
  }
  ret l2;
}

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: #1004255
Snippet name: inFrame - filter components list by frame name
Eternal ID of this version: #1004255/1
Text MD5: d7a37d461d4617bc47bde2fb7aacbd58
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-11 22:44:31
Source code size: 246 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 393 / 403
Referenced in: [show references]