private void bordersChanged() {
    JComponent component = (JComponent)toAWTComponent();
    component.setBorder(JBUI.Borders.empty());
    Collection<BorderInfo> borders = dataObject().getBorders();
    Map<BorderPosition, Integer> emptyBorders = new LinkedHashMap<>();
    for (BorderInfo border : borders) {
      if (border.getBorderStyle() == BorderStyle.EMPTY) {
        emptyBorders.put(border.getBorderPosition(), border.getWidth());
      }
    }
    if (!emptyBorders.isEmpty()) {
      component.setBorder(JBUI.Borders.empty(getBorderSize(emptyBorders, BorderPosition.TOP), getBorderSize(emptyBorders, BorderPosition.LEFT), getBorderSize(emptyBorders, BorderPosition.BOTTOM),
                                             getBorderSize(emptyBorders, BorderPosition.RIGHT)));
      return;
    }
    // FIXME [VISTALL] support other borders?
  }
private void bordersChanged() {
    JComponent component = (JComponent)toAWTComponent();
    component.setBorder(JBUI.Borders.empty());
    Collection<BorderInfo> borders = dataObject().getBorders();
    Map<BorderPosition, Integer> emptyBorders = new LinkedHashMap<>();
    for (BorderInfo border : borders) {
      if (border.getBorderStyle() == BorderStyle.EMPTY) {
        emptyBorders.put(border.getBorderPosition(), border.getWidth());
      }
    }
    if (!emptyBorders.isEmpty()) {
      component.setBorder(JBUI.Borders.empty(getBorderSize(emptyBorders, BorderPosition.TOP), getBorderSize(emptyBorders, BorderPosition.LEFT), getBorderSize(emptyBorders, BorderPosition.BOTTOM),
                                             getBorderSize(emptyBorders, BorderPosition.RIGHT)));
      return;
    }
   
  }
private void borderschanged() { jcomponent component = (jcomponent)toawtcomponent(); component.setborder(jbui.borders.empty()); collection<borderinfo> borders = dataobject().getborders(); map<borderposition, integer> emptyborders = new linkedhashmap<>(); for (borderinfo border : borders) { if (border.getborderstyle() == borderstyle.empty) { emptyborders.put(border.getborderposition(), border.getwidth()); } } if (!emptyborders.isempty()) { component.setborder(jbui.borders.empty(getbordersize(emptyborders, borderposition.top), getbordersize(emptyborders, borderposition.left), getbordersize(emptyborders, borderposition.bottom), getbordersize(emptyborders, borderposition.right))); return; } }