title: Paint operation is not being executed but the system out does
body: <p>I'm working on a application that draws boxes and connects them with lines. Each line has corners (dots). The user can add dots by right clicking the line. Then the dot gets a location set.</p>
  
  <p>The paint method of the diagram loops through all the dots and checks if they are custom (simple; return (location != -1)), when they are it must paint a circle image on that location. </p>
  
  <p>Now i really tearing out my hear because it executes in debug mode but don't draw! I placed a system out to check and that is executed as normal. But the if statement works if I place a ! sign in front of the if statement. I really can't find the problem.</p>
  
  <p>The paint method:</p>
  
  <pre><code>public void paint(Graphics2D g) {
      g.setColor(Color.RED);//_lineColor);
      g.setStroke(new BasicStroke(DEFAULT_LINE_SIZE));
  
      for(Line2D line : _lines) {
          g.draw(line);
      }
  
      if(_isHover) {
          for(ConnectionDot dot : _connectionDots) {
              if(dot.isUserDot()) {
                  System.out.println("YEAH!!!");
                  //TODO: dot hover?
                  g.drawImage(_icoConnectionNor.getImage(), dot.getX()-8, dot.getY()-8, null);
  
                  //g.drawString("What?", dot.getX(), dot.getY());
              } else {
                  System.out.println("Hell No!");
  
                  g.drawString("What?", dot.getX(), dot.getY());
              }
          }
      }
  }
  </code></pre>
  
  <p>The Dot class:</p>
  
  <pre><code>public class ConnectionDot {
  //...
  private int _userDotQueueLoc;
  
  /**
   * Create new dot.
   *
   * @param gridController reference to the grid controller.
   * @param grid Grid position of the dot.
   */
  public ConnectionDot(GridController gridController, Grid grid){
      _gridController = gridController;
      _gridPos = grid;
      _userDotQueueLoc = -1;
  }
  
  /**
   * Create new user dot.
   *
   * @param gridController reference to the grid controller.
   * @param grid Grid position of the dot.
   * @param userDotLocation Location of user dot.
   */
  public ConnectionDot(GridController gridController, Grid grid, int userDotLocation){
      this(gridController, grid);
      _userDotQueueLoc = userDotLocation;
  }
  
  /**
   * Returns true if the dot is custom.
   *
   * @return Flag.
   */
  public boolean isUserDot(){
      return (_userDotQueueLoc != -1);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Console output:
  Hell No!
  Hell No!
  Hell No!
  Hell No!
  YEAH!!!
  Hell No!
  Hell No!
  Hell No!
  Hell No!
  YEAH!!!
  ... you get the point</p>