Java 2D Tutorials
941495Jun 4 2012 — edited Jun 4 2012I'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;