1 | static class CenteredLine extends JPanel { |
2 | public CenteredLine(Component... components) { |
3 | setLayout(LetterLayout.centeredRow()); |
4 | for (Component component : components) |
5 | add(component); |
6 | } |
7 | |
8 | public void add(String text) { |
9 | add(new JLabel(text)); |
10 | } |
11 | } |
Began life as a copy of #2000339
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004150 |
Snippet name: | static class CenteredLine |
Eternal ID of this version: | #1004150/1 |
Text MD5: | 81750d82ec810db2f8c194768d528406 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-08 16:29:06 |
Source code size: | 280 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 575 / 1443 |
Referenced in: | [show references] |