protected void initListeners() {
// textView.addComponentListener(new ComponentAdapter(){
// public void componentResized(ComponentEvent e){
// try{
// scroller.getViewport().setViewPosition(
// textView.modelToView(0).getLocation());
// scroller.paintImmediately(textView.getBounds());
// }catch(BadLocationException ble){
// //ignore
// }
// }
// });
// stop control+H from deleting text and transfers the key to the
// parent
textView.addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
if(e.getKeyCode() == KeyEvent.VK_H && e.isControlDown()) {
getGUI().dispatchEvent(e);
e.consume();
}
}
});
}
TextualDocumentView.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:gate-core
作者:
评论列表
文章目录