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

8
LINES

< > BotCompany Repo | #1020871 // replaceComponentsOfHGrid

JavaX fragment (include)

1  
svoid replaceComponentsOfHGrid(final Container hgrid, final L<? extends Component> l) {
2  
  if (hgrid == null) ret;
3  
  swing {
4  
    LayoutManager layout = hgrid.getLayout();
5  
    if (layout cast GridLayout) layout.setColumns(l(l));
6  
    replaceAllComponents(hgrid, l);
7  
  }
8  
}

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: 260 / 308
Version history: 3 change(s)
Referenced in: [show references]