}
});
ButtonBar topBar = new ButtonBar();
Button refreshButton = new Button("Refresh");
refreshButton.addSelectionListener(new SelectionListener<ButtonEvent>()
{
public void componentSelected(ButtonEvent ce)
{
refreshRooms();
}
});
roomField.setWidth(250);
topBar.add(new ButtonAdapter(roomField));
topBar.add(new FillButton());
topBar.add(refreshButton);
this.setTopComponent(topBar);
//main.add(roomField,new RowData(1,-1));
main.add(roomGrid,new RowData(1,1));
add(main);
ButtonBar bar = new ButtonBar();
Button createButton = new Button("Create Room");
createButton.addSelectionListener(new SelectionListener<ButtonEvent>()
{
public void componentSelected(ButtonEvent ce)
{
joinRoom(null);
}
});
Button joinButton = new Button("Join");
joinButton.addSelectionListener(new SelectionListener<ButtonEvent>()
{
public void componentSelected(ButtonEvent ce)
{
joinRoom(currentJid);
}
});
Button closeButton = new Button(JabberApp.getConstants().close());
closeButton.addSelectionListener(new SelectionListener<ButtonEvent>()
{
public void componentSelected(ButtonEvent ce)
{
close();
}