1 | 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 #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: | 825 / 813 |
| Referenced in: | [show references] |