I want to display a message input by a user on an applet
/**
* @(#)Hello.java
*
* Hello Applet application
*
* @author
* @version 1.00 2011/3/17
*/
import java.awt.*;
import java.applet.*;
import java.io.Console.*;
import java.io.*;
public class Hello extends Applet {
public void init() {
}
public void paint(Graphics g) {
BufferedReader keyboard;
String Message;
try{
g.drawString("Enter message to be displayed:",0,20);
keyboard = new BufferedReader(new InputStreamReader(System.in));
Message=keyboard.readLine();
}
catch(IOException e){
g.drawString("Error reading input!",0,40);
}
g.drawString(Message,0,40);
g.drawString("Hello World!!!", 50, 60 );
}
}