private void updateBorder() {
try {
CellBorder border = null;
if(allInOneBtn.isSelected()) {
CellEdge edge = getEdge(topBorderCombo, topWidthField);
border = new CellBorder(edge, edge, edge, edge);
} else if(topBottomBtn.isSelected()) {
CellEdge top = getEdge(topBorderCombo, topWidthField);
CellEdge bottom = getEdge(bottomBorderCombo, bottomWidthField);
border = new CellBorder(top, null, null, bottom);
} else if(leftRightBtn.isSelected()) {
CellEdge left = getEdge(leftBorderCombo, leftWidthField);
CellEdge right = getEdge(rightBorderCombo, rightWidthField);
border = new CellBorder(null, left, right, null);
} else {
CellEdge top = getEdge(topBorderCombo, topWidthField);
CellEdge bottom = getEdge(bottomBorderCombo, bottomWidthField);
CellEdge left = getEdge(leftBorderCombo, leftWidthField);
CellEdge right = getEdge(rightBorderCombo, rightWidthField);
border = new CellBorder(top, left, right, bottom);
}
if (border.isEmpty()) {
style.setBorder(null);
} else {