public void removeLayoutComponent(Component comp) { gridbag.removeLayoutComponent(comp); if (way == X_AXIS) { gridbag.setColumns( gridbag.getColumns() - 1); } else { gridbag.setRows( gridbag.getRows() - 1); } }
public void removeLayoutComponent(Component component) { grid.removeLayoutComponent(component);  if (way == X_AXIS || (way == LINE_AXIS && component.getComponentOrientation().isHorizontal()) || (way == PAGE_AXIS && !component.getComponentOrientation().isHorizontal())) grid.setColumns(grid.getColumns() - 1); else grid.setRows(grid.getRows() - 1); }
    public void removeLayoutComponent(Component comp)    {	gridbag.removeLayoutComponent(comp);	if (way == X_AXIS)	    {		gridbag.setColumns( gridbag.getColumns() - 1);	    }	else	    {		gridbag.setRows( gridbag.getRows() - 1);	    }    }