[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 397
  • Last Modified:

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

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.
  • 2
1 Solution
Why not just use List<JLabel>?

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now