[英]How do I set the background to be transparent in a HTML Component in LWUIT?
[英]How to i update a component using addComponent in LWUIT?
我試圖在下面的代碼片段中更新現有組件,其中“ index ”是現有組件的索引。
TextField l = new TextField();
l.setText(txt);
t.addComponent(index, l);
從上面開始,最后添加了新組件,而不是更新到該索引組件。 我們如何才能更新現有組件?
刪除舊組件,然后添加新組件或使用Container.replace()
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.