1 | import javax.swing.border.*; |
2 | |
3 | static JPanel jSection(Component c) {
|
4 | ret jSection("", c);
|
5 | } |
6 | |
7 | static JPanel jSection(fS title, final Component c) {
|
8 | ret swing(func -> JPanel {
|
9 | Border border = BorderFactory.createBevelBorder(BevelBorder.LOWERED); |
10 | border = BorderFactory.createTitledBorder(border, title); |
11 | JSection panel = new(c); |
12 | panel.setBorder(border); |
13 | ret panel; |
14 | }); |
15 | } |
16 | |
17 | static JPanel jSection(S title) {
|
18 | ret jSection(title, jpanel()); |
19 | } |
20 | |
21 | |
22 | static JPanel jSection(LiveValue<?> lv, Component c) {
|
23 | ret jLiveValueSection(lv, c); |
24 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006228 |
| Snippet name: | jSection - make lowered BevelBorder around component |
| Eternal ID of this version: | #1006228/9 |
| Text MD5: | 03237544fc3133dccee3d4bb8baf5c00 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-14 09:11:17 |
| Source code size: | 577 bytes / 24 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1258 / 1293 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |