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

13
LINES

< > BotCompany Repo | #1008619 // jtextfield_caretLeft - position caret at left (looks better)

JavaX fragment (include)

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

static JTextField jtextfield_caretLeft(S text) {
  JTextField tf = jTextField(text);
  tf.setCaretPosition(0);
  ret tf;
}

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

Author comment

Began life as a copy of #1005867

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008619
Snippet name: jtextfield_caretLeft - position caret at left (looks better)
Eternal ID of this version: #1008619/1
Text MD5: 871f1232d5d356ce2b3a71b6aebda233
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-25 21:04:46
Source code size: 306 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 444 / 492
Referenced in: [show references]