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

6
LINES

< > BotCompany Repo | #1007806 // centerTextField

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (10661L) is out of date.

static <A extends JTextField> A centerTextField(A tf) {
  if (tf != null) swing {
    tf.setHorizontalAlignment(JTextField.CENTER);
  }
  ret tf;
}

Author comment

Began life as a copy of #1005321

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: #1007806
Snippet name: centerTextField
Eternal ID of this version: #1007806/7
Text MD5: fa3d1935d9d3d2cfabe614a50e39c97b
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-06-02 21:36:17
Source code size: 152 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 653 / 692
Version history: 6 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007808 - centerTextArea - doesn't work
#1013366 - centerComboBox
#1036398 - rightAlignTextField