버튼이있는 대화 상자를 만듭니다.코드 명 하나의 버튼 동작에 대한 대화 닫기
해당 버튼 중 하나의 동작에 대화를 완료하고 싶습니다.
명령을 추가하고 싶지 않습니다.
도와주세요.
여기 내 코드입니다.
Form form = (Form) createContainer("/theme", "MYDialog1");
Container container = (Container) findByName("Container", form);
button = new Button(new Command("Close"),i));
try
{
button.setUIID("LabelButton");
}
catch (Exception exception)
{
exception.printStackTrace();
}
button.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
??????
}
});
container.addComponent(button);
Dialog.show("", form, null);