I'm creaitng a client-server application for a small project.
In all of my lectures, both the client and the server were classes which extended JFrame. In other words, the visual-aid was within the same class. I want to know whether it is possible for me to have a JPanel within a JFrame and have the client/server class separate from it. What do I need to do?
I want to separate the GUI from the implementation. In the above paragraph I wanted to say that all of the examples that I have seen implement both the GUI and the server/client interface in the same class. I want to have a GUI class (JPanel) which has elements which interact with functions of the Client/Server...
EDIT: I was talking about self-made MVC(model control view) pattern. I want to separate the view from the model(the server). For this, I need to create a controller class. I was practically asking what the controller clas should be like, but I found an answer; MVC Pattern Description