package fauxExchange; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Vector; class graphWindow extends JPanel{ private int[] points; //the array of points to plot private int xStart=10; private int xEnd=380; private int yStart = 30; private int yEnd = 380; //the width of a bar on a graph private int xOffset = 20; private int xSpacing = 3; private double yScaleFactor = 400; //the height to which the maxmimum y value will reach' //in pixels private double maxXSize = 400; public graphWindow(xyGraph g){ setForeground(Color.black); yScaleFactor = g.Yscale; // xScaleFactor = g.Xscale; System.out.println("Y-scale Factor: "+yScaleFactor); points = new int[g.range.length]; for(int i=0;i