[5575] in java-interest
TextField problem ...
daemon@ATHENA.MIT.EDU (Katsalis Nikolaos 537)
Sun Feb 18 09:44:02 1996
Date: Sun, 18 Feb 1996 15:30:32 +0200
From: Katsalis Nikolaos 537 <katsalis@csd.uch.gr>
To: java-interest@java.sun.com
Hi from Crete,
I have a problem with the TextField class. I created
two TextFields on a Panel which is on an applet and when I see
the applet with netscape, I cannot edit them. The cursor blinks
just fine and they seem ready to write in but I cannot write
new text or erase the one that is already in (from the momment
of creation). When I load the applet using appletviewer the
Textfields work just fine.
thanks in advance,
Nikos.
The panel uses GridBagLayout() if that matters.
Here is the code:
infile_selection = new TextField(25);
// If I don't call the setEditable() method the result is the same.
infile_selection.setEditable(true);
outfile_selection = new TextField(25);
// If I don't call the setEditable() method the result is the same.
outfile_selection.setEditable(true);
infile_selection.setText("Some text");
outfile_selection.setText("Some text");
infile_selection.show();
outfile_selection.show();
add(infile_selection);
add(outfile_selection);
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com