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

12
LINES

< > BotCompany Repo | #1015785 // addAndValidate

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

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

svoid addAndValidate(Container c, Component x) {
  if (c != null && x != null) swing {
  
    ifclass DynamicStack
    if (c cast DynamicStack)
      ret with c.addComponent(x);
    endif
    
    c.add(x);
    c.revalidate();
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015785
Snippet name: addAndValidate
Eternal ID of this version: #1015785/3
Text MD5: 308f50ad553d0d81d7fd035a961aa6dd
Transpilation MD5: 188d4d919e8531180ba789d88c0de8b9
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-29 02:15:28
Source code size: 243 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 492 / 589
Version history: 2 change(s)
Referenced in: [show references]