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

8
LINES

< > BotCompany Repo | #1001659 // allSwingComponentsOfType

JavaX fragment (include)

  static <A> L<A> allSwingComponentsOfType(Class<A> theClass) {
    L<JFrame> frames = listAllFrames();
    new L<A> l;
    
    for (JFrame f : frames)
      scanForComponents(f, theClass, l);
    return l;
  }

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1001659
Snippet name: allSwingComponentsOfType
Eternal ID of this version: #1001659/1
Text MD5: dfda1c1380ee95b6c2c4dd8b6f5532eb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-01 13:37:52
Source code size: 218 bytes / 8 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 665 / 899
Referenced in: #1001777 - allSwingComponents -> rather use allAWTComponents
#1002427 - Accellerating 629 (SPIKE)
#1004253 - allJTables
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)