Yava технологія.Основні риси та персрективи застосування
private Button done;
private TextField chatfield;
private List idList;
private TextArea dialogArea;
public void init() {
setLayout( new BorderLayout() );
serverName = getCodeBase().getHost();
if (serverName.equals(""))
serverName = "localhost";
prompt = new Label("Enter id:");
namefield = new TextField(30);
topPanel = new Panel();
topPanel.setBackground(new Color(255, 255, 200));
topPanel.add(prompt);
topPanel.add(namefield);
add("North", topPanel);
idList = new List(10, false);
add("West", idList );
dialogArea = new TextArea();
dialogArea.setEditable( false );
add("Center", dialogArea );
}
public void start() {
try {
showStatus("Connecting to " + serverName);