- Joined
- Dec 3, 2009
- Messages
- 8
- Reaction score
- 0
Hello,
**This post is related to work at university**
I am currently designing a java GUI that'l use 2 classes one for customers and another for products they can buy. I have some idea how this can fit together, but i can't get my head around how to structure the program. Theres a drop down on the GUI that is populated with product names from the products class and a bunch of textfields that should link to the customer class so i can save them. My question is, how can i use 2 classes on the same frame so that the classes are written out on their own .java page. Because the frame is generated from creating an object i cant find a way to reference the frame within another class.
I was thinking a superclass for the GUI and 2 subclasses for the details so using packages, inhertance etc. Which I can currently researching, but if anyone can point me in the right direction, that would be great.
Thanks!
**This post is related to work at university**
I am currently designing a java GUI that'l use 2 classes one for customers and another for products they can buy. I have some idea how this can fit together, but i can't get my head around how to structure the program. Theres a drop down on the GUI that is populated with product names from the products class and a bunch of textfields that should link to the customer class so i can save them. My question is, how can i use 2 classes on the same frame so that the classes are written out on their own .java page. Because the frame is generated from creating an object i cant find a way to reference the frame within another class.
I was thinking a superclass for the GUI and 2 subclasses for the details so using packages, inhertance etc. Which I can currently researching, but if anyone can point me in the right direction, that would be great.
Thanks!