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

17
LINES

< > BotCompany Repo | #1005867 // jTextField - with undo

JavaX fragment (include)

1  
static JTextField jTextField() {
2  
  ret jTextField("");
3  
}
4  
5  
static JTextField jTextField(fS text) {
6  
  ret swing(func -> JTextField {
7  
    JTextField tf = new JTextField(unnull(text));
8  
    standardTextFieldPopupMenu(tf);
9  
    jenableUndoRedo(tf);
10  
    tf.selectAll();
11  
    ret tf;
12  
  });
13  
}
14  
15  
static JTextField jTextField(O o) {
16  
  ret jTextField(strOrEmpty(o));
17  
}

Author comment

Began life as a copy of #1005321

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005867
Snippet name: jTextField - with undo
Eternal ID of this version: #1005867/7
Text MD5: 86936c3693a0265fb01c884dfc28ac01
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-02 17:58:46
Source code size: 371 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 647 / 682
Version history: 6 change(s)
Referenced in: [show references]