Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1014638 // jRaisedSection - make raised BevelBorder around component

JavaX fragment (include)

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);
}

Author comment

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: 287 / 322
Version history: 1 change(s)
Referenced in: [show references]