class CenteredLine extends JPanel {
  public CenteredLine(Component... components) {
    setLayout(LetterLayout.centeredRow());
    for (Component component : components)
      add(component);
  }
  public void add(String text) {
    add(new JLabel(text));
  }
}Began life as a copy of #2000337
Snippet is not live.
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #2000339 | 
| Snippet name: | class CenteredLine | 
| Eternal ID of this version: | #2000339/1 | 
| Text MD5: | 2b6701d964a8bfbe42ae09a78d527726 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | New Tinybrain snippet | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2015-05-10 17:13:33 | 
| Source code size: | 273 bytes / 11 lines | 
| Pitched / IR pitched: | No / Yes | 
| Views / Downloads: | 824 / 813 | 
| Referenced in: | [show references] |