Structuring a Java program using multiple classes

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top