2015-12-28 33 views
2

我想在下面的SwipeableContainer中添加按鈕,但它會給編譯時錯誤。BoxLayout.encloseX不工作在代號1

"Exception: java.lang.Error - Unresolved compilation problem: The method encloseX(Button, Button, Button, Button) is undefined for the type BoxLayout java.lang.Error: Unresolved compilation problem."

代碼:

Button button1 = new Button("B1"); 
Button button2 = new Button("B2"); 
Button button3 = new Button("B3"); 
Button button4 = new Button("B4"); 
SwipeableContainer swipeableContainer = new SwipeableContainer(null,BoxLayout.encloseX(button1,button2,button3,button4), rowContainer); 

回答

2

我已經更新了最新的lib中codenameone和它的工作。