title: Trying to draw lines based on doubles but nothing shows?
body: <p>Here's the class in which I try to draw the lines</p>
  
  <pre><code>package gps;
  import java.awt.*;
  import java.awt.geom.Line2D;
  import java.util.*;
  
  import javax.swing.*;
  
  public class RoadMap extends JPanel {
  
      public void paintComponent(Graphics2D g)
      {
          super.paintComponent(g);
          g.setColor(Color.blue);
  
          for(int i = 0; i &lt; Graph.getEdges().length; i++)
          {   
              Shape s = new Line2D.Double(Graph.vMap.get(Graph.getEdges()[i].i1).x,
                      Graph.vMap.get(Graph.getEdges()[i].i1).y,
                      Graph.vMap.get(Graph.getEdges()[i].i2).x,
                      Graph.vMap.get(Graph.getEdges()[i].i2).y);
  
              g.draw(s);
          }   
      }   
  }
  </code></pre>
  
  <p>The <code>Graph.vMap.get(Graph.getEdges()[i].i2).x</code> and <code>Graph.vMap.get(Graph.getEdges()[i].i2).y</code> access the <code>x</code> and <code>y</code> values for the endpoints of the lines and I've tested it and it returned the correct values.  However, nothing shows up in my JFrame with this.  Trying to draw other lines with set values outside of the for loop actually worked.</p>