Blackberry Java: TextField *without* the caret?
问题 I want a non-editable TextField (or a subclass) that doesn't even have the caret displayed. Alternatively, I want a multiline LabelField. Is any of these possible? 回答1: TextField without focus cursor TextField readOnly = new TextField(NON_FOCUSABLE); readOnly.setText("Read only, no carret"); add(readOnly); TextField drawFocus override If text is too large to fit the screen, you can override drawFocus method in TextField, so scrolling will be available: TextField readOnly = new TextField