This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Applets and the fly likes Make it in Applet, please.....urgent please.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "Make it in Applet, please.....urgent please...." Watch "Make it in Applet, please.....urgent please...." New topic
Author

Make it in Applet, please.....urgent please....

nima lama
Greenhorn

Joined: Jun 18, 2001
Posts: 19
respected experts outhere,
please help me to slove this problem.
i wanted to have this program in applet, i tried this but got confuesed with the (system.in).i can't make textfield take the input from user.
i would be grateful if you make applet code out of this program.
import java.net.*;
import java.io.*;
public class client
{
Socket client;

BufferedReader keyin;
BufferedReader in;
PrintWriter out;
String keyinput;
String msg;

public client()
{

try
{

client=new Socket("127.0.0.1",8080);
keyin=new BufferedReader(new InputStreamReader(System.in));

in=new BufferedReader(new InputStreamReader(client.getInputStream()));
out=new PrintWriter(client.getOutputStream(),true);

while(true)
{
try
{
keyinput=keyin.readLine();

out.println(keyinput);

msg=in.readLine();
System.out.println(msg);
}
catch(Exception e)
{
System.out.println("error: "+e.getMessage());
}
}
}
catch(Exception e)
{
System.out.println("error :"+e.getMessage());
}
}
public static void main(String args[])
{
client vclient=new client();
}
}
Peter Gragert
Ranch Hand

Joined: Jan 16, 2001
Posts: 424
To my knowledge an Applet is not allowed to do things like you want!
If at all you need certifications ... I up to now never did this, so you need help about this stuff too.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Make it in Applet, please.....urgent please....
 
It's not a secret anymore!