Hi, I have two chat
applet clients (one thru http and one thru socket)that has a TextField for inputing messages, and is setEditable(true).
Each has same handleEvent:
public boolean handleEvent(Event event) {
switch (event.id) {
case Event.ACTION_EVENT:
if (event.target == input) {
broadcastMessage(input.getText());
input.setText("");
return true;
}
}
return false;
}
However, when the applets are loaded, the http applet does not allow typing in words at all (even though the cursor is there), and the socket client, while allowing words to be typed in, when "Enter" key is pressed, nothing changes. What is wrong with my applets or browser?