Is there a way to store multiple clicks of a label in java swing.

Posted on 2012-08-11
Last Modified: 2012-08-13
I have created a java swing application which detects label clicks and searches the linked list for objects that match the label name.

Now I have already implemented this assuming only one label is clicked.

However let us say if a user clicks 5 labels at a time I want to capture all 5 simultaneously in order to do a comparison.

Now I would like to clarify one more thing that the labels are generated dynamically based on the number of records in the linked list.For example if the linked list has only 5 author fields,then only 5 labels are created.
Question by:akashsuresh
    LVL 86

    Accepted Solution

    Why not just use List<JLabel>?
    LVL 86

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now