2014-02-13 39 views
-1

我有一個錯誤使用LWUIT 1.5問,命令錯誤J2ME LWUIT

這是我的代碼

initialitation在我的項目中添加一個命令按鈕:

Command backCommand = new Command("Back", Command.BACK, 0); 

f.addCommand(backCommand); 
f.setCommandListener(this); 

,這是一個錯誤

cannot find symbol symbol: method addCommand 
    (javax.microedition.lcdui.Command) location: 
    class.com.sun.lwuit.Form 
    -- 

請幫我TT,THANSK的答案

回答

1

看來你使用的是lcdui庫中的Command對象。檢查您的班級導入並從LWUIT庫中添加Command對象。

+0

請問你認爲你可以幫助我解決這個問題https://stackoverflow.com/questions/23730176/j2me-how-to-parse-a-byte-array-into-xml-and-then-read-和顯示特定的數據 – Axel