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)

1  
static JTextField jtextfield_caretLeft() {
2  
  ret jtextfield_caretLeft("");
3  
}
4  
5  
static JTextField jtextfield_caretLeft(S text) {
6  
  JTextField tf = jTextField(text);
7  
  tf.setCaretPosition(0);
8  
  ret tf;
9  
}
10  
11  
static JTextField jtextfield_caretLeft(O o) {
12  
  ret jtextfield_caretLeft(strOrEmpty(o));
13  
}

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: 445 / 494
Referenced in: [show references]