public void reshape(int x, int y, int width, int height) { // adjust divider locations, based on new size if (width > 0 && height > 0) adjustDivider(new Dimension(width, height)); super.reshape(x, y, width, height); }