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

11
LINES

< > BotCompany Repo | #1020489 // setTextAndMoveCaretToEnd

JavaX fragment (include)

static <A extends JTextComponent> A setTextAndMoveCaretToEnd(fS text, final A c) {
  swing {
    setText(c, text);
    moveCaretToEnd(c);
  }
  ret c;
}

static <A extends JTextComponent> A setTextAndMoveCaretToEnd(A c, S text) {
  ret setTextAndMoveCaretToEnd(text, c);
}

Author comment

Began life as a copy of #1015604

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020489
Snippet name: setTextAndMoveCaretToEnd
Eternal ID of this version: #1020489/1
Text MD5: a905daf17b5463f5d4622e3524b5559f
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-24 16:05:46
Source code size: 282 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 278 / 327
Referenced in: [show references]