Swing textfield
Hi,
I created a simple program in Swing that displays a textfield. In IE, the program displays fine and I can type values into the textfield by first clicking on the textfield. However, in Netscape (both 4.7 and 6.2), the program displays fine but I cannot type anything into the textfield even after clicking on the textfield. In other words, the textfield is never getting the focus. Does anyone know why? I am using the Java plug-in.
Here is the simple code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class TextDemo extends JApplet{
public void init() {
JPanel topPanel = new JPanel();
topPanel.setLayout( new FlowLayout());
getContentPane().add(topPanel);
JTextField textField = new JTextField(20);
topPanel.add(textField);
}
}

