Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java 2D Tutorials

941495Jun 4 2012 — edited Jun 4 2012
I'm read several different tutorials trying to grasp how to draw basic stuff and haven't found anything that explains this at all. Below is something that makes no sense to me because it uses a word enclosed in parentheses on its own, which I've never seen elsewhere and is not explained anywhere...

public void paint (Graphics g) {
Graphics2D g2 = *(Graphics2D)* g;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2012
Added on Jun 4 2012
2 comments
181 views