private void setSelectedCoordinateSystem(CoordinateSystem coordSys) { List beans = csTable.getBeans(); for (Object bean1 : beans) { CoordinateSystemBean bean = (CoordinateSystemBean) bean1; if (bean.coordSys == coordSys) { csTable.setSelectedBean(bean); return; } } }
private void setSelectedCoordinateAxes(CoordinateSystem cs) { List axesList = cs.getCoordinateAxes(); if (axesList.size() == 0) return; CoordinateAxis axis = (CoordinateAxis) axesList.get(0); List beans = axisTable.getBeans(); for (Object bean1 : beans) { AxisBean bean = (AxisBean) bean1; if (bean.axis == axis) { axisTable.setSelectedBean(bean); return; } } }