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

9
LINES

< > BotCompany Repo | #1016946 // jComboBoxOnTrimmedFileContents

JavaX fragment (include)

1  
// (kind of) TODO: reads file on AWT thread
2  
static int jComboBoxOnTrimmedFileContents_defaultInterval = 1000;
3  
4  
static JComboBox jComboBoxOnTrimmedFileContents(LS items, File f, S defaultContents) {
5  
  final Pair<SimpleLiveValue<S>, Runnable> p = trimmedFileLiveValue(f, defaultContents);
6  
  JComboBox cb = jLiveValueComboBox(items, p.a);
7  
  awtEvery(cb, jComboBoxOnTrimmedFileContents_defaultInterval, p.b);
8  
  ret cb;
9  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016946
Snippet name: jComboBoxOnTrimmedFileContents
Eternal ID of this version: #1016946/3
Text MD5: 31c81290214f1503547a45e2620d28a8
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-09 13:30:24
Source code size: 424 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 432 / 457
Version history: 2 change(s)
Referenced in: [show references]