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

5
LINES

< > BotCompany Repo | #1034619 // truncateContainer

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5156L/28K).

svoid truncateContainer(Container c, int n) swing {
  if (c != null)
    while (c.getComponentCount() > n)
      c.remove(c.getComponentCount()-1);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034619
Snippet name: truncateContainer
Eternal ID of this version: #1034619/1
Text MD5: 78d14892d4e93e14ff70721244cefbda
Transpilation MD5: 7d8d12c20ef4b850d98f3519855f5af3
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-24 18:41:18
Source code size: 153 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 142 / 202
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)