box.setLocation(new Point((int) newX, (int) newY));
Graphics2D boxGraphics = (Graphics2D) graphics.create((int) newX, (int) newY,
(int) newW, (int) newH);
BoxPrinter boxPrinter = box.getBoxPrinter();
boxPrinter.draw(boxGraphics, monitor);
}
graphics.dispose();
// ImageIO.write(bI, "png", new File("c:\\Users\\moovida\\Desktop\\test.png"));
// graphics.drawImage(bI, null, 0, 0);