How to sent and rerieve an ArrayList object
Hi,
In my application (server/client) there is an arraylist that keeps track of x and i want the entire arraylist object to be sent over as soon as a new client has connected.
The problem is that i cannot sent or recieve the arraylist to any other clients except on the local machine.
Any tips?
[319 byte] By [
deAppela] at [2007-11-27 3:37:15]

# 3
Not sure if it helps but I can post a snippet:
private JTextArea userList= new JTextArea(16,16);
private List lijst = new List();
public void setText(String s) {
textField.setText("update");
if ( textField.getText().toString().equals("update")){
userList.setText("");
textField.setText("");
for(int i = 0; i<userList.size();i++) {
String name = (String)userList.get(i);
userList.append(name+"\n");
}
}
userList.add(name);
userList.append(name + "\n");
TextMessage tm = ts.createTextMessage();
tm.setText("online : "+name+" ");
tpub.publish(t, tm);
Not sure if this is the code you want.