は私が画像を含む他のものLabel
の間で表示したい、このラベルの画像はTimeline
がありますリソースエディタに追加すると、自動的にTimeline
に変換されました。それから私は私のForm
にLabel
を追加しました:それなしで「しばらくお待ち下さい」のラベルが示されていないため LWUIT 1.4:Display.callSerially()で作業するときにタイムラインがアニメーション化されないのはなぜですか?</p> <p><img src="https://i.stack.imgur.com/qpExX.png" alt="enter image description here">私はウェブからイメージを得た事実</p> <p>:それはそう、アニメーションGIFである
public class Login extends Ecran implements ActionListener {
...
public Login(SmartPhoneBanking c, Form prevForm) {
...
patientez = new Label((MenuPrincipalForm.r).getImage("roller_fond_blanc")); // r is the LWUIT Resources , you can see the roller_fond_blanc Timeline in the attached image
patientez.setAlignment(Label.CENTER);
...
cPatienter.addComponent(patientez);
...
}
...
public void actionPerformed(ActionEvent evt)
{
...
if (evt.getSource() == validerBtn)
{
getTitleComponent().setVisible(false);
cntnr.removeComponent(cBtn);
cntnr.removeComponent(libAndFieldContainer);
removeCommand(listeMenu);
cntnr.addComponent(cPatienter); // showing the "Please wait" labels and the Timeline
repaint();
Display.getInstance().callSerially(new Runnable()
{
public void run() {
download();
}
});
}
}
私は
repaint()
メソッドが含まれています。
なぜTimeline
はアニメーション化されていませんか?
イメージをフォームに直接挿入した後で、生成されたコードを貼り付けることはできますか? – pheromix
最新のリソースエディタを使用していないと思います... LWUITのブログをご覧ください。 – Mun0n