public PathographyPanel() {
model = new DefaultListModel<String>();
list = new JList<String>(model);
this.setViewportView(list);
this.setAutoscrolls(true);
this.getVerticalScrollBar().addAdjustmentListener(new AdjustmentListener() {
public void adjustmentValueChanged(AdjustmentEvent e) {
if(needScroll) {
e.getAdjustable().setValue(e.getAdjustable().getMaximum());
needScroll = false;
} else {
e.getAdjustable().setValue(e.getAdjustable().getValue());
}
}
});
}
PathographyPanel.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:ScreenBasedSimulator
作者:
评论列表
文章目录