
import com.nttdocomo.ui.*;


public class ComponentUI extends IApplication
	implements ComponentListener
{
	Label label = new Label("ラベルです");
	TextBox textbox = new TextBox("テキストボックス",10,2,TextBox.DISPLAY_ANY);
	Button button = new Button("ボタンです");

    public void start()
	{
		Panel panel = new Panel();

		panel.add(label);
		panel.add(textbox);
		panel.add(button);

        Display.setCurrent(panel);

		panel.setComponentListener(this);
    }


	public void componentAction(Component source, int type, int param) 
    {
		System.out.println("CE:" + source + "/" + type + "/" + param);
	}
}




