import javax.swing.border.*; static JPanel jRaisedSection(Component c) { ret jRaisedSection("", c); } static JPanel jRaisedSection(fS title, final Component c) { ret swing(func -> JPanel { Border border = BorderFactory.createBevelBorder(BevelBorder.RAISED); border = BorderFactory.createTitledBorder(border, title); JPanel panel = new SingleComponentPanel(c); panel.setBorder(border); ret panel; }); } static JPanel jRaisedSection(S title) { ret jRaisedSection(title, new JPanel); }
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: | 350 / 391 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1034173 - jRaisedSectionBorder #1034181 - jCenteredRaisedSection - make raised BevelBorder around component |