I am trying to align a CheckBoxField and TextField on LEFT and RIGHT respectively using an HorizontalFieldManager. But unfortunately the TextField is never visible.
I tried the same code with two buttons, and the buttons were visible without any trouble (one button on the right corner and the other on the left corner of the screen).
But I am not sure, why I can't acheive the same if I use a CheckBoxField. Here is my code,
checkBoxHorizontalFieldManager=new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH);
keepLoggedCheckboxField=new CheckboxField("keep Me Logged In", true,CheckboxField.FIELD_LEFT);
forgotPasswordTextField=new TextField(TextField.FIELD_RIGHT);
forgotPasswordTextField.setText("Forgot Password?");
checkBoxHorizontalFieldManager.add(keepLoggedCheckboxField);
checkBoxHorizontalFieldManager.add(forgotPasswordTextField);
add(checkBoxHorizontalFieldManager);
I even tried reducing the text length on both the fields. But still the same issue.