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

19
LINES

< > BotCompany Repo | #1006228 - jSection - make lowered BevelBorder around component

JavaX fragment (include)

import javax.swing.border.*;

static JPanel jSection(Component c) {
  ret jSection("", c);
}

static JPanel jSection(fS title, final Component c) {
  ret swing(func -> JPanel {
    Border border = BorderFactory.createBevelBorder(BevelBorder.LOWERED);
    border = BorderFactory.createTitledBorder(border, title);
    JSection panel = new(c);
    panel.setBorder(border);
    ret panel;
  });
}

static JPanel jSection(S title) {
  ret jSection(title, jpanel());
}

download  show line numbers  debug dex   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1006228
Snippet name: jSection - make lowered BevelBorder around component
Eternal ID of this version: #1006228/7
Text MD5: 51c98f7b1b5378c62a5eaa253ab1fd1d
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-07 21:25:31
Source code size: 483 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 393 / 406
Version history: 6 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1006228 & http://1006228.tinybrain.de