108109110111112113114115116117118
tablaPoblacion.setPreferredScrollableViewportSize( tablaPoblacion.getPreferredSize()); header.paint(graphicTabla); graphicTabla.translate(0, header.getHeight()); tablaPoblacion.paint(graphicTabla); }
104105106107108109110111112113114
4445464748495051525354
BufferedImage tableImage = new BufferedImage(totalWidth, totalHeight, BufferedImage.TYPE_INT_RGB); Graphics2D g2D = (Graphics2D)tableImage.getGraphics(); tableHeaderComp.paint(g2D); g2D.translate(0, tableHeaderComp.getHeight()); super.paint(g2D);