Board index » jbuilder » 1.character in textarea lost....

1.character in textarea lost....


2004-09-05 06:04:32 PM
jbuilder11
Hey,
i have a panel with a textfield and e textarea. both are editable.
when i klick with the mouse between them everything is allright.
when i jump with the "tab" - fokus on textarea, the first character i
type in this area is not writen on the screen. i can jump between them
many time - the first character is lost...
thanks
Marc
 
 

Re:1.character in textarea lost....

i copy an easy working exsample of my problem...
type anything in the adressfield and jump with tab in the big textarea.
the 1. character will not shown...
if you klick by mouse it works fine.
thank you
Marc
package mailbox;
import java.awt.*;
import java.applet.*;
public class Applet1 extends Applet {
Panel p_mailbox = new Panel();
BorderLayout borderLayout9 = new BorderLayout();
TextField tf_mailempfänger = new TextField();
TextArea ta_mailbox = new TextArea();
Panel panel1 = new Panel();
Label l_mailempfänger = new Label();
Label l_mailbox1 = new Label();
BorderLayout borderLayout11 = new BorderLayout();
//Das Applet initialisieren
public void init() {
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
//Initialisierung der Komponenten
private void jbInit() throws Exception {
p_mailbox.setVisible(true);
p_mailbox.setBounds(new Rectangle(0, 0, 400, 300));
p_mailbox.setLayout(borderLayout9);
panel1.setLayout(borderLayout11);
l_mailempfänger.setText("Empfänger :");
tf_mailempfänger.setText("");
ta_mailbox.setText(" ");
ta_mailbox.setVisible(true);
l_mailbox1.setAlignment(Label.CENTER);
l_mailbox1.setText("offline Nachricht an anderen User senden");
this.add(p_mailbox, null);
p_mailbox.add(panel1, BorderLayout.NORTH);
p_mailbox.add(ta_mailbox, BorderLayout.CENTER);
panel1.add(l_mailbox1, BorderLayout.NORTH);
panel1.add(l_mailempfänger, BorderLayout.WEST);
panel1.add(tf_mailempfänger, BorderLayout.CENTER);
}
}
 

Re:1.character in textarea lost....

Marc wrote:
Quote
i copy an easy working exsample of my problem...
type anything in the adressfield and jump with tab in the big textarea.
the 1. character will not shown...
if you klick by mouse it works fine.
thank you
Marc

package mailbox;

import java.awt.*;
import java.applet.*;

public class Applet1 extends Applet {
Panel p_mailbox = new Panel();
BorderLayout borderLayout9 = new BorderLayout();
TextField tf_mailempfänger = new TextField();
TextArea ta_mailbox = new TextArea();
Panel panel1 = new Panel();
Label l_mailempfänger = new Label();
Label l_mailbox1 = new Label();
BorderLayout borderLayout11 = new BorderLayout();

//Das Applet initialisieren
public void init() {
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}

//Initialisierung der Komponenten
private void jbInit() throws Exception {
p_mailbox.setVisible(true);
p_mailbox.setBounds(new Rectangle(0, 0, 400, 300));
p_mailbox.setLayout(borderLayout9);

panel1.setLayout(borderLayout11);
l_mailempfänger.setText("Empfänger :");
tf_mailempfänger.setText("");
ta_mailbox.setText(" ");
ta_mailbox.setVisible(true);
l_mailbox1.setAlignment(Label.CENTER);
l_mailbox1.setText("offline Nachricht an anderen User senden");

this.add(p_mailbox, null);
p_mailbox.add(panel1, BorderLayout.NORTH);
p_mailbox.add(ta_mailbox, BorderLayout.CENTER);
panel1.add(l_mailbox1, BorderLayout.NORTH);
panel1.add(l_mailempfänger, BorderLayout.WEST);
panel1.add(tf_mailempfänger, BorderLayout.CENTER);
}

}
Answered in jbuilder.ide. Please do not multipost, it is against the
newgroup policies.
 

{smallsort}