954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to create a list of jpanels

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.

ismithx
Newbie Poster
4 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

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.

BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: