Menu

LabeledComponentFinder accepts all components

Help
Byron
2005-08-11
2013-04-09
  • Byron

    Byron - 2005-08-11

    Has anyone used the LabeledComponentFinder with any success?  It accepts all the components in any container I send it.  This is not very useful.  I am giving it a specific label to search for, and only one component has that particular label.  Yet it returns them all! 

     
    • Byron

      Byron - 2005-08-11

      On further investigation, it appears that the finder is looking at all the instances of JLabel in the container.  This is explicitly incorrect behavior: a labeled component is one that is by definition _not_ a label.  Am I missing something?

       

Log in to post a comment.