Chapter 12: Problem 3
Find the error(s) in each of the following and explain how to correct the error(s). Assume that \(g\) is a Graphics object. a) \(g \cdot\) setFont \((\text { "SansSerif" })\) b) \(g\). erase \((x, y, w, h)\) // clear rectangle at \((x, y)\) c) Font \(f=\) new Font \((\text { "Serif", Font.BOLDITALIC, } 12\) ); d) \(g \cdot\) setColor (255,255,0)\(; \quad / /\) change color to yellow
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.