It is a project and I am an import store with many different products. The store consists of 4 different categories of products: Toys, Videogames, Apparel, and Books. Whenever I run the main program it only runs one of the four. I could just put the information from each into one of the products but I want them to keep the titles to differentiate each product. How would I do this?
Asked
Active
Viewed 51 times
1
-
3See [The Use of Multiple JFrames, Good/Bad Practice?](http://stackoverflow.com/a/9554657/418556) – Andrew Thompson Jan 07 '14 at 08:08
-
As an aside, it sound like the IDE and you are 'the tail wagging the dog'. Don't extend frame, and most of the problems will be solved. – Andrew Thompson Jan 07 '14 at 08:09
-
2Have you considered using a `CardLayout` or even a `JTabbedPane` instead of using 4 `JFrame`? It will be a much cleaner looking program, and probably even better performing program – Paul Samsotha Jan 07 '14 at 08:11
-
Hmm no I haven't, let me try it out. – user3168216 Jan 07 '14 at 08:13
-
2Try this tutorial for CardLayout or TabbedPane http://docs.oracle.com/javase/tutorial/uiswing/layout/card.html – Sorter Jan 07 '14 at 08:17