Codenameone FloatingHint 问题
Codenameone FloatingHint issue
尝试使用 Codename One FloatingHint
class 但是在 运行 应用程序上我得到了 java.lang.IllegalArgumentException: Component is already contained in Container
。这是我的实现
Form f = new Form(new BoxLayout(BoxLayout.Y_AXIS));
TextField hintTest= new TextField(11);
hintTest.setHint("The hint");
new FloatingHint(hintTest);
addComponent(hintTest);
设法让它与
一起工作
TextField hintTest= new TextField(11);
hintTest.setHint("The Hint");
FloatingHint x = new FloatingHint(uname);
addComponent(x);
尝试使用 Codename One FloatingHint
class 但是在 运行 应用程序上我得到了 java.lang.IllegalArgumentException: Component is already contained in Container
。这是我的实现
Form f = new Form(new BoxLayout(BoxLayout.Y_AXIS));
TextField hintTest= new TextField(11);
hintTest.setHint("The hint");
new FloatingHint(hintTest);
addComponent(hintTest);
设法让它与
一起工作 TextField hintTest= new TextField(11);
hintTest.setHint("The Hint");
FloatingHint x = new FloatingHint(uname);
addComponent(x);