public void addLayoutComponent(String name, Component comp) { if (way == X_AXIS) { gridbag.setColumns( gridbag.getColumns() + 1); } else { gridbag.setRows( gridbag.getRows() + 1); } }
public void addLayoutComponent(String name, Component 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 addLayoutComponent(String name, Component comp)    {	if (way == X_AXIS)	    {		gridbag.setColumns( gridbag.getColumns() + 1);	    }	else	    {		gridbag.setRows( gridbag.getRows() + 1);	    }    }