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

8
LINES

< > BotCompany Repo | #1006266 // addTextToLabelToTheRight

JavaX fragment (include)

1  
static JLabel addTextToLabelToTheRight(JLabel label, S text) {
2  
  if (nempty(text)) {
3  
    label.setText(text);
4  
    label.setVerticalTextPosition(SwingConstants.CENTER);
5  
    label.setHorizontalTextPosition(SwingConstants.RIGHT);
6  
  }
7  
  ret label;
8  
}

Author comment

Began life as a copy of #1006264

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006266
Snippet name: addTextToLabelToTheRight
Eternal ID of this version: #1006266/1
Text MD5: 4962f74d9607eb6563f459d3ce1310ed
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-26 13:28:42
Source code size: 252 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 571 / 578
Referenced in: [show references]