I have 2 points:
1- Applets cannot access I/O channels anyway (Windows doesn't allow them)
2- There is no such thing Client-Client a server must exist in between

So I still say no you can't do it
but You can create a java App that works like an IM