void (Container parent) { int spaceTop = parent.getInsets().top; int spaceLeft = parent.getInsets().left; int spaceBottom = parent.getHeight() - parent.getInsets().bottom; int spaceHeight = spaceBottom - spaceTop; int xOffset = spaceLeft; xOffset = layoutComponent(xOffset, getLayoutComponent(WEST), spaceTop, spaceHeight); xOffset = layoutComponent(xOffset, getLayoutComponent(CENTER), spaceTop, spaceHeight); layoutComponent(xOffset, getLayoutComponent(EAST), spaceTop, spaceHeight); }