java graphics display help
- by java
I know that i am not calling the graphics paint command in the mainframe in order to display it. but i'm not sure how.
thanks in advance
import java.awt.*;
import javax.swing.*;
public class MainFrame extends JFrame {
private static Panel panel = new Panel();
public MainFrame() {
panel.setBackground(Color.white);
Container c =…