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

7
LINES

< > BotCompany Repo | #1006935 // jFullCenter - uses the GridBagLayout trick

JavaX fragment (include)

static JPanel jFullCenter(final Component c) {
  ret swing(func -> JPanel {
    JPanel panel = new JPanel(new GridBagLayout);
    panel.add(c);
    ret panel;
  });
}

Author comment

Began life as a copy of #1006689

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006935
Snippet name: jFullCenter - uses the GridBagLayout trick
Eternal ID of this version: #1006935/5
Text MD5: 43e83675a0041b0f696d40b30b31e36c
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-10 18:23:00
Source code size: 172 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 612 / 659
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007876 - jfullcenter - synonym of jFullCenter
#1009953 - jTopCenter
#1027210 - jFullCenterScroll - synonym of jscroll_centered