OK.. I'm learning this, but am finding it a tad confusing sortingout the command listener.
Using one of the tutorial examples:
Form f = new Form("My Form");
Button button = new Button("Push me!");
final Label countLabel = new Label(" ");
f.addComponent(countLabel);
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
c++;
countLabel.setText(Integer.toString(c));
f.layoutContainer();
}
});
Basically the 'countLabel' does not ever have text updated.
How do i modify, or read for that matter, a component added to the form?
Thanks
David

Reply With Quote

