void (boolean isVerticalSplit) { removeAll(); setCursor(isVertical() ? Cursor.getPredefinedCursor(Cursor.N_RESIZE_CURSOR) : Cursor.getPredefinedCursor(Cursor.W_RESIZE_CURSOR)); if (!myShowDividerControls && !myShowDividerIcon) { return; } Icon glueIcon = isVerticalSplit ? SplitGlueV : SplitGlueH; add(new JLabel(glueIcon), new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.CENTER, GridBagConstraints.NONE, JBInsets.emptyInsets(), 0, 0)); revalidate(); repaint(); }