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)

static JTextField jTextField() {
  ret jTextField("");
}

static JTextField jTextField(fS text) {
  ret swing(func -> JTextField {
    JTextField tf = new JTextField(unnull(text));
    standardTextFieldPopupMenu(tf);
    jenableUndoRedo(tf);
    tf.selectAll();
    ret tf;
  });
}

static JTextField jTextField(O o) {
  ret jTextField(strOrEmpty(o));
}

Author comment

Began life as a copy of #1005321

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, sawdedvomwva, tslmcundralx, tvejysmllsmz

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: 363 / 329
Version history: 6 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1005867 & http://1005867.tinybrain.de