Like this
public class Ch5SampleGraphics_UF {
public static void main(String[] args) {
JFrame win;
Container contentPane;
Graphics gra;
Type: Posts; User: copeg
Like this
public class Ch5SampleGraphics_UF {
public static void main(String[] args) {
JFrame win;
Container contentPane;
Graphics gra;
Your code now draws to the graphics object of the content pane, but this doesn't ensure that it will be drawn. The standard way to paint to a JComponent (in your case the conentPane) is to override...