void (Container parent) { JComboBox cb = (JComboBox)parent; if (arrowButton != null) { Dimension aps = arrowButton.getPreferredSize(); if (cb.getComponentOrientation().isLeftToRight()) { arrowButton.setBounds(cb.getWidth() - aps.width, 0, aps.width, cb.getHeight()); } else { arrowButton.setBounds(0, 0, aps.width, cb.getHeight()); } } layoutEditor(); }