使用代码滑动可滑动容器时不显示组件

Component not showing when swipeable container is swiped using code

我有一个可滑动的容器,滑动时会显示一个按钮。
当你用鼠标滑动时它有效,但它似乎不起作用 您使用代码执行相同的操作。

    Form hi = new Form(new BoxLayout(BoxLayout.Y_AXIS));
    Container multiButtonCont = new Container(new BoxLayout(BoxLayout.Y_AXIS));

    MultiButton mButton = new MultiButton();
    mButton.setTextLine1("mButton 1");
    Button testB1 = new Button("TestButton1");
    SwipeableContainer swipe = new SwipeableContainer(testB1,mButton);
    multiButtonCont.addComponent(swipe);

    Button openButton = new Button("Open");
    openButton.addActionListener(e->{
        for(int i=0;i<multiButtonCont.getComponentCount();i++){
            ((SwipeableContainer) (multiButtonCont.getComponentAt(i))).openToRight();
        }
    });
    Button closeButton = new Button("Close");
    closeButton.addActionListener(e->{
        for(int i=0;i<multiButtonCont.getComponentCount();i++){
            ((SwipeableContainer) (multiButtonCont.getComponentAt(i))).close();
        }
    });
    hi.addComponent(GridLayout.encloseIn(2, openButton, closeButton));
    hi.addComponent(multiButtonCont);
    hi.show();

关于如何使用代码实现打开可滑动容器的任何想法?

感谢您的代码,它似乎是组件中的回归。我已经修复它,它应该可用于 2016 年 10 月 7 日即将到来的更新