List of utility methods to do JComponent to Image
void | tileImage(Image img, Component comp, Graphics g, int x, int y, int width, int height) Tiles a rectangular region of an AWT Graphics context with a specified image. if (img == null || g == null) { throw new NullPointerException("Image/Graphics null"); Shape origclip = g.getClip(); g.setClip(x, y, width, height); int imgwidth = img.getWidth(comp); int imgheight = img.getHeight(comp); int ypos = y; ... |