posted 20 years ago
I'm creating a "market" kinda like what you might find in a video game, e.g you can buy swords, potions, etc.
I'm laying it out as follows. There is a JInternalFrame which contains a JTabbedPane. The JTabbedPane contains a different JPanel for each category; obviously only one JPanel/category can be seen at a time. Within each JPanel is a JScrollPane containing a scrollable JPanel. That inner JPanel is using a VerticleFlowLayout to display ProductPanels (which simply extend JPanels).
In short, you can flip between scrollable lists of JPanels. I want to let the user click on one of my ProductPanels (efectively JPanels) and be able to figure out which JPanel was clicked on. I'm not quite sure how to do this. Any ideas?
--Mark