1 | import javax.swing.border.*; |
2 | |
3 | static JPanel jRaisedSection(Component c) {
|
4 | ret jRaisedSection("", c);
|
5 | } |
6 | |
7 | static JPanel jRaisedSection(fS title, final Component c) {
|
8 | ret swing(func -> JPanel {
|
9 | Border border = BorderFactory.createBevelBorder(BevelBorder.RAISED); |
10 | border = BorderFactory.createTitledBorder(border, title); |
11 | JPanel panel = new SingleComponentPanel(c); |
12 | panel.setBorder(border); |
13 | ret panel; |
14 | }); |
15 | } |
16 | |
17 | static JPanel jRaisedSection(S title) {
|
18 | ret jRaisedSection(title, new JPanel); |
19 | } |
Began life as a copy of #1006228
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014638 |
| Snippet name: | jRaisedSection - make raised BevelBorder around component |
| Eternal ID of this version: | #1014638/2 |
| Text MD5: | 4fdace609306685cbfa6ecf9a1e4b75e |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-04-27 15:15:23 |
| Source code size: | 533 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 640 / 677 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |