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

13
LINES

< > BotCompany Repo | #1034429 // revalidateIncludingFullCenterContainer - revalidate that also handles components contained in jscroll_center

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

Transpiled version (5045L) is out of date.

svoid revalidateIncludingFullCenterContainer(Component c) {
  if (c == null) ret;
  swing {
    c.revalidate();
    var parent = c.getParent();
    printVars ifdef revalidateIncludingFullCenterContainer_debug("revalidateIncludingFullCenterContainer", +c, +parent);
    
    if (parent != null && parent.getLayout() instanceof GridBagLayout) {
      printVars ifdef revalidateIncludingFullCenterContainer_debug("revalidateIncludingFullCenterContainer", +parent);
      parent.revalidate();
    }
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034429
Snippet name: revalidateIncludingFullCenterContainer - revalidate that also handles components contained in jscroll_center
Eternal ID of this version: #1034429/7
Text MD5: 0c399152370a0d5d903f255eacf90778
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-24 15:05:22
Source code size: 512 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 87 / 157
Version history: 6 change(s)
Referenced in: [show references]