boolean (RadContainer container, boolean isRow, int i) { GridBagLayout gridBag = getGridBag(container); double[][] weights = gridBag.getLayoutWeights(); if (weights != null) { double[] cellWeights = weights[isRow ? 1 : 0]; return i >= 0 && i < cellWeights.length && cellWeights[i] >= 0.1; } return false; }