设置大文本控件(KDTextArea)滚动条的简易方法,避免使用多语言的大文本控件:
第一步:定义KDScrollPane变量
protected com.kingdee.bos.ctrl.swing.KDScrollPane scrollPaneType;
第二步:重构 initUIContentLayout() 方法并实现给大文本添加滚动Pane的代码
public void initUIContentLayout() {
super.initUIContentLayout();
scrollPaneType = new com.kingdee.bos.ctrl.swing.KDScrollPane();
conttype.setBoundEditor(scrollPaneType);
scrollPaneType.getViewport().add(txttype, null);
}
版权声明:本文为wimpykids原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。