void (final GridConstraints constraints, final boolean isRow, final int delta) { if (isRow) { constraints.setRowSpan(constraints.getRowSpan() + delta); } else { constraints.setColSpan(constraints.getColSpan() + delta); } }