Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6443371

JTabbedPane's "tabComponentAt" PropertyChangeEvent should be renamed

XMLWordPrintable

    • b92
    • generic
    • generic

      When tabComponent is set JTabbedPane fires property change event with name "tabComponentAt"
      with the index of new tabComponent, that might lead to a problem in the future, because getTabComponentAt(int) returns Component, not an integer

      To be on the safe side we need to fire property with another name, just like JTabbedPane.setTitleAt() does.

      firePropertyChange("indexForTabComponent", -1, index); would be ok

            alexp Alexander Potochkin (Inactive)
            alexp Alexander Potochkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: