That is a pretty broad question. What web cam will you use? There is probably some kind of API for it. I'd suggest you start by reading the docs for it.
@Ulf basically it's a swing Based application i have completed the other messaging application (private as well as broadcasting ) now want to implement the video chatting service can it be done with swing ? and if yes then how please tell me
Swing isn't the answer, but you can capture video using JMF. See https://coderanch.com/t/628706/java/java/capture-video-JMF for a recent discussion that points to some example code. You still have a lot of things to think about with respect to sending video over the network and displaying it, but it's a start. This is a sizable project that you should expect to spend a lot of time on.
What do you mean by "normal message"? Video not a one-time text message, it's a continuous binary stream of data that is also time-sensitive. It is a much more ambitious project than text chat.
Post by:autobot
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
a bit of art, as a gift, the permaculture playing cards