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

JTabbedPane's "tabComponentAt" PropertyChangeEvent should be renamed

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b92
    • CPU:
      generic
    • OS:
      generic

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: