ok is hard for me to describe my problem now but then i will try my best to in order for me to get some assist.

technically i have a server.java and client.java as a super class. and my layout structure for my server and client connection goes like this

MAIN SERVER --- CLIENT/SERVER ----- CLIENT

my main problem is the this CLIENT/SERVER part is 1 driver class that calls 2 different classes which is CLIENT and SERVER together... and this creates a problem when my CLIENT sends something that needs to be received by MAIN SERVER side needs to go through CLIENT/SERVER part. if is that condition happens..

the CLIENT of course need to interact with CLIENT/SERVER (SERVER) part because is a SERVER that accepts the CLIENT data. but now i wanted the (SERVER) part in the CLIENT/SERVER to transfer the data to (CLIENT) in the CLIENT/SERVER part so that it can be send to the MAIN SERVER

how is it possible for me to write something that allows the CLIENT/SERVER to interact with each other so it can transfer the data between them vise versa? how ever this is my code for calling the CLIENT and SERVER together

i have re edit my question with the SlaveClient and SlaveServer code above...
–
user1217609Feb 27 '12 at 21:48

I suggest you take a look at the writeToMsg() method, which looks like it is in the Server superclass, which we can't see. You probably need to modify the SlaveClient to send something other that "TEST".
–
DNAFeb 27 '12 at 22:15

actually my writeToMsg is nth related cause they are just methods from the SlaveServer which i did not mention it above but then here is the actual code that i edit from my post above again..they are just method that i use to append my JTextArea for my GUI....right now i did not created any method to send data yet as i thought of this problem and finding a solution for it 1st..seems to be hard
–
user1217609Feb 27 '12 at 22:25