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

8
LINES

< > BotCompany Repo | #1020871 // replaceComponentsOfHGrid

JavaX fragment (include)

svoid replaceComponentsOfHGrid(final Container hgrid, final L<? extends Component> l) {
  if (hgrid == null) ret;
  swing {
    LayoutManager layout = hgrid.getLayout();
    if (layout cast GridLayout) layout.setColumns(l(l));
    replaceAllComponents(hgrid, l);
  }
}

Author comment

Began life as a copy of #1020868

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020871
Snippet name: replaceComponentsOfHGrid
Eternal ID of this version: #1020871/4
Text MD5: ef9065dd563ba2bea502dbb673816da8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-06 16:23:52
Source code size: 275 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 196 / 245
Version history: 3 change(s)
Referenced in: [show references]