void () { super.layout(); if (syncStrategyPanel != null) { Rectangle bounds = this.getViewport().getBounds(); int height = bounds.height - syncStrategyPanel.getPreferredSize().height; this.getViewport().setBounds(bounds.x, bounds.y, bounds.width, height); syncStrategyPanel.setBounds(bounds.x, bounds.y + height, bounds.width, syncStrategyPanel.getPreferredSize().height); } }