title: Java PropertyChangeSupport does not fire for different properties
body: <p>I have developed an own javaBean for Swing. Now I'm trying to catch two properties on change, using a PropertyChangeListener.</p>
  
  <p>The problem is that the PropertyChangeSupport for one of my properties in the JavaBean works fine but it does not seem to fire any propertyChange for the other declared property.</p>
  
  <p>Let me give you some extracts of my code:</p>
  
  <p>JCalendar Bean:</p>
  
  <pre><code>public class JCalendar extends JPanel {  
    private int startDay, endDay;  
    private final PropertyChangeSupport pcs = new PropertyChangeSupport(this);  
  
    public int getStartDay() {
      return startDay;
    }
  
    public void setStartDay(int startDay) {
      int old = this.startDay;  
      this.startDay = startDay;  
      this.pcs.firePropertyChange("startDay", old, startDay);
    }
  
    public int getEndDay() {
      return endDay;
    }
  
    public void setEndDay(int endDay) {
      int old = this.endDay;
      this.endDay = endDay;
      this.pcs.firePropertyChange("endDay", old, endDay);
    }
  }
  </code></pre>
  
  <p>Of course there is some more code in the Bean-Class but I cut it in order to keep it clear.
  I try to catch these propertyChanges with a PropertyChangeListener in another class like this:</p>
  
  <pre><code>class markedDayListener implements PropertyChangeListener {
  
    public void propertyChange(PropertyChangeEvent arg0) {
  
     System.out.println(arg0.getPropertyName());
  
     if(arg0.getPropertyName().equals("startDay")) {
        // Do something
     } else if(arg0.getPropertyName().equals("endDay")) {
        // Do something
     }
    }
   }
  </code></pre>
  
  <p>So far everything seems correct to me. But for some reason the PropertyChangeSupport only fires a propertyChange when startDay is changed. As soon as I change endDay, the setEndDay Method is called but there seems no propertyChange to be fired. I have logged all the events with simple System.out.println()s in order to see, which methods are called and found out the following:</p>
  
  <ul>
  <li>The PropertyChangeListener is added properly and works when startDay changes</li>
  <li>the setStartDay() and setEndDay()-methods are called properly</li>
  <li>when setEndDay() is called, no propertyChangeEvent with the propertySource "endDay" is set</li>
  </ul>
  
  <p>I have been trying this for some hours now and don't see what's wrong. Hopefully someone here can help me.</p>