Transpiled version (5599L) is out of date.
1 | static class RightAlignedLine extends JPanel {
|
2 | *(int spacing, Component... components) {
|
3 | this(components); |
4 | setSpacing(spacing); |
5 | } |
6 | |
7 | *(Component... components) {
|
8 | setLayout(LetterLayout.rightAlignedRow()); |
9 | for (Component component : components) |
10 | if (component != null) |
11 | add(component); |
12 | } |
13 | |
14 | void setSpacing(int spacing) {
|
15 | ((LetterLayout) getLayout()).setSpacing(spacing, spacing); |
16 | } |
17 | |
18 | public void add(String text) {
|
19 | add(new JLabel(text)); |
20 | } |
21 | } |
Began life as a copy of #1004150
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005943 |
| Snippet name: | RightAlignedLine |
| Eternal ID of this version: | #1005943/4 |
| Text MD5: | 3a9c1a37b608e3dac3d875b4d6a2ac36 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-17 18:28:24 |
| Source code size: | 514 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 826 / 2488 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |