public void updateAttribsFromComponents() { if (widthCB.isSelected()) { String w = widthField.getModel().getValue().toString(); if (widthCombo.getSelectedIndex() == 0) w += "%"; // $NON-NLS-1$ attribs.put("width", w); // $NON-NLS-1$ } else attribs.remove("width"); // $NON-NLS-1$ if (alignCB.isSelected()) attribs.put("align", alignCombo.getSelectedItem().toString()); // $NON-NLS-1$ else attribs.remove("align"); // $NON-NLS-1$ if (borderCB.isSelected()) attribs.put( "border", //$NON-NLS-1$ borderField.getModel().getValue().toString()); else attribs.remove("border"); // $NON-NLS-1$ if (cellSpacingCB.isSelected()) attribs.put( "cellspacing", //$NON-NLS-1$ cellSpacingField.getModel().getValue().toString()); else attribs.remove("cellspacing"); // $NON-NLS-1$ if (cellPaddingCB.isSelected()) attribs.put( "cellpadding", //$NON-NLS-1$ cellPaddingField.getModel().getValue().toString()); else attribs.remove("cellpadding"); // $NON-NLS-1$ if (bgPanel.isSelected()) attribs.put("bgcolor", bgPanel.getColor()); // $NON-NLS-1$ else attribs.remove("bgcolor"); // $NON-NLS-1$ }