public Grid copyGrid(Grid grid) { Grid g = new Grid(grid.getHeight(), grid.getWidth()); for (int row = 0; row < height; row++) { for (int col = 0; col < width; col++) { g.setValue(row, col, grid.getValue(row, col)); } return g; }
private void resizeLiveScroller() { int h = grid.getHeight(true) - mainHd.getHeight(true); if (isHorizontalScrollBarShowing()) { h -= XDOM.getScrollBarWidth(); } if (footer != null) { h -= footer.getHeight(); } liveScroller.setHeight(h, true); } }