thanks..was inserting the wrong ip..but still its giving wrong output.. and will wrap the programs in future.thanks :)
--- Update ---
thanks..was inserting the wrong ip..but still its giving...
Type: Posts; User: vivek rajput
thanks..was inserting the wrong ip..but still its giving wrong output.. and will wrap the programs in future.thanks :)
--- Update ---
thanks..was inserting the wrong ip..but still its giving...
import java.io.*;
import java.net.*;
public class Client1
{
public static void main(String args[])throws IOException
{
try
{
Socket socket=new Socket("59.177.97.229",5001);
DataInputStream...
Thanks a lot Kevin :) it worked finally
thanks. but its now showing one error :
non-static variable this cannot be referenced from a static context
jb.addActionListener(this);
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
class GUI2 extends JFrame implements ActionListener
{
public static void main(String s[])
{
JFrame jf=new...