I'm newby in AWT and I've got some questions. How move text fields to the left? How to move second text field to next line? This is my init():
public void init() {
setSize(500, 200);
encode = new Button("Encode");
Label valueL = new Label("Text:");
Label codeLabel = new Label("Crypt:");
text = new TextField(12);
codeField = new TextField(12);
add(valueL);
add(text);
add(encode);
add(codeLabel);
add(codeField);
text.addActionListener(this);
encode.addActionListener(this);
}