void (final RadContainer container) { if (container.getWidth() * container.getHeight() >= 4096*4096) return; int count = container.getComponentCount(); int[] rows = new int[count]; int[] rowSpans = new int[count]; int[] cols = new int[count]; int[] colSpans = new int[count]; for(int i=0; i<count; i++) { GridConstraints c = container.getComponent(i).getConstraints(); rows [i] = c.getRow(); rowSpans [i] = c.getRowSpan(); cols [i] = c.getColumn(); colSpans [i] = c.getColSpan(); } int[] horzGridLines = container.getGridLayoutManager().getHorizontalGridLines(container); int[] vertGridLines = container.getGridLayoutManager().getVerticalGridLines(container); if (!arraysEqual(horzGridLines, myHorzGridLines) || !arraysEqual(vertGridLines, myVertGridLines) || !arraysEqual(rows, myRows) || !arraysEqual(rowSpans, myRowSpans) || !arraysEqual(cols, myCols) || !arraysEqual(colSpans, myColSpans)) { myHorzGridLines = horzGridLines; myVertGridLines = vertGridLines; myRows = rows; myRowSpans = rowSpans; myCols = cols; myColSpans = colSpans; repaint(container); } }