}
private CellEdge getEdge(JComboBox typeCombo, JTextField widthField)
throws NumberFormatException{
int width = Integer.parseInt(widthField.getText());
EdgeType type = (EdgeType) typeCombo.getSelectedItem();
if(width == 0
|| type == null
|| type == EdgeType.invisible) {
return null;
}