app = (AppGameContainer) container;
app.setIcon("testdata/icon.tga");
}
font = new AngelCodeFont("testdata/demo2.fnt","testdata/demo2_00.tga");
field = new TextField(container, font, 150,20,500,35, new ComponentListener() {
public void componentActivated(AbstractComponent source) {
message = "Entered1: "+field.getText();
field2.setFocus(true);
}
});
field2 = new TextField(container, font, 150,70,500,35,new ComponentListener() {
public void componentActivated(AbstractComponent source) {
message = "Entered2: "+field2.getText();
field.setFocus(true);
}
});