开发者

Scrollbar in html component in lwuit java

I want to create chat window with textarea and textbox in lwuit. Textarea must capable to show smiley and coloring text开发者_C百科. I have used HtmlComponent of lwuit and facing problem in scrollbar. As text content grows in size, whole screen scroll including textbox. I want only content of textarea to be scrolled.

How to solve it?


well, you can forbid scrolling for the whole form using Form.setScrollable(false). Then you just set your HTMLcomponent scrollable "true" with the same method and finally put these two components (TextArea and HTMLComponent) to a different cosntraints (e.g. TextArea in BorderLayout.NORTH and HTMLComponent in BorderLayout.CENTER)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜