I am having a problem with StdDraw and resizing the window so points appear. I have a Point class with a draw() method
/**
* Draws this point to standard draw.
*/
public void draw() {
/* DO NOT MODIFY */
StdDraw.point(x, y);
}
Then in a tester class I have
public static void main(String[] args) {
Point p = new Point(3, 4);
StdDraw.setXscale(0, 10);
StdDraw.setYscale(0, 10);
p.draw();
}
When I run this, I get two windows that pop up, both with nothing in them. I assume one is a window from the Point class, plotting the point at (3,4) on a coordinate plane that has not been resized, and the other window is the resized window from the tester class with no points on it. Am I missing something here? How can I get this to run in one window without modifying the Point class?