Hi all,
I have developed a simple chat application and I am having problems updating the onlineUserlist dynamically after a user logs in
or a user logs off.
As you can see below the contacstFrame class implements the ListSelectionListener, ListDataListener
My problem is that i don't know how to tell the model that a user have logged or a user have logged off so it can update dynamically.
Any suggestions...?
package teamC;
//package teamc;
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenuBar;
import javax.swing.*;
import java.io.*;
import javax.swing.JOptionPane;
/**
*