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.

1  
static <A extends JTextField> A centerTextField(A tf) {
2  
  if (tf != null) swing {
3  
    tf.setHorizontalAlignment(JTextField.CENTER);
4  
  }
5  
  ret tf;
6  
}

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