I\'m trying to make a program which listens to the client input stream by using socket programming and timer
but whenever timer executes.. it gets hanged
Ple
Make the program multi-threaded; one thread listens on the socket, the other one handles the GUI. Use SwingUtilities.invokeLater to let the GUI thread ("event dispatching thread") do the GUI updates whenever the network thread receives data.