Hello there I am looking for some help. How can I go about creating a list of JPanels in Java? I want them all to have subcomponents, to be created dynamically, and be able to return events. How can I do this?

I have checked and I know I will not be able to do this in a JList, I am not so sure about a JTable, and I am seriously considering creating my own custom component.

If I am creating my own custom component, how can I go about this?

I know this is a very difficult question so that I appreciate any comments.

What are you trying to accomplish? You can create a JPanel and show it dynamically by adding it to a JFrame or to another JPanel.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.