Hey all
Can I get some help how to call a graphics-method?
I mean, how to make it run in a good way?
Is there any other way to do this than in an applet?
Drawing Geometric Primitives (The Java™ Tutorials > 2D Graphics > Working with Geometry)
^ I mean this code:
How to call it so it will run? (Ok, the one that i quoted isn't a visible object(?), but if it was, how to run it?)Code:public void paint (Graphics g) {
Graphics2D g2 = (Graphics2D) g;
...
}
Sorry for messy post
But I'm in school, and this is a lesson where we aren't doing anything ^^
Still I wouldn't want the teacher to see
///M~

