Libraryless. Click here for Pure Java version (6953L/39K).
1 | static JPanel westAndEastWithMargin(Component w, Component e) { |
2 | JPanel panel = new JPanel(new BorderLayout); |
3 | panel.add(BorderLayout.WEST, wrap(w)); |
4 | panel.add(BorderLayout.CENTER, horizontalStrut(10)); |
5 | panel.add(BorderLayout.EAST, wrap(e)); |
6 | ret panel; |
7 | } |
Began life as a copy of #1007245
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034559 |
Snippet name: | westAndEastWithMargin |
Eternal ID of this version: | #1034559/1 |
Text MD5: | 688d25e1cc7d5dad208d279870b9512b |
Transpilation MD5: | fcba13cbbecc477095525df011e77d2d |
Author: | stefan |
Category: | javax / swing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-15 17:13:44 |
Source code size: | 268 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 153 / 212 |
Referenced in: | [show references] |