how to translate java swing
// With Graphics object
g.translate(200, 200);
// With Graphics2d object
g2.translate(200, 200);
Are there any code examples left?
New code examples in category Java
// With Graphics object
g.translate(200, 200);
// With Graphics2d object
g2.translate(200, 200);