void (JPanel panel) { for (JSlider slider : mySliders.values()) { slider.setOrientation(SwingConstants.HORIZONTAL); slider.setPreferredSize(JBUI.size(200, 40)); panel.add(slider, new GridBagConstraints(0, 1, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, JBUI.insets(5, 0), 0, 0)); } }