static 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 #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: | 576 / 1444 |
Referenced in: | #1005943 - RightAlignedLine #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |