Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+6 votes
asked in CSC211_Winter2018 by (8 points)
0

Graphics g = panel.getGraphics();

5 Answers

+7 votes

Graphics g = panel.getGraphics(); // so you can use graphics.

answered by (8 points)
+7 votes

Make sure to use: import java.util.*;
Then: Graphics g = panel.getGraphics();

answered by (8 points)
+4 votes

Graphics g = panel.getGraphics();, provided you imported java.util.*;

answered by (8 points)
+1 vote

import java.util.*;

Graphics g = panel.getGraphics();

answered by (8 points)
0 votes

Graphics g = panel.getGraphics();

answered by (8 points)
...