Hi i have a program with a JFrame and it has two jpanels on it, one containing the buttons needed and the other which is going to be used for plotting graphs, but when i try to plot an x, y graph on the plotting jpanel it does not show up. any idea of what i can do, thank you for any help that can be given.
This is the code for making the graph
@Override
public void paintComponents(Graphics g)
{
super.paintComponents(g);
g.setFont(new Font("Courier New", Font.BOLD,16));
g.setColor(Color.BLUE);
g.drawLine(200,200,200,350); // x-axis
g.drawLine(0,350,1400,350);// y-axis