垂直分隔器面板、聊天输出面板和聊天输入面板。主jpanel,chatpanel,实现mousemotionlistener,并具有以下代码: int y = e.getYinput.componentResized(new ComponentEvent(this, 2)); }此外,从打印语句,当鼠标进入聊天输出,e.getY()
我有一个不同标签上的聊天面板。每个选项卡面板都有一个聊天,讨论时间也很长,所以在我的initComponent中,我有一个代码可以连续滚动到底部,这样我就可以显示最新的消息: this.scrollBy我实现了一个钩子: if not this.autoscroll_disabled, 100现在,当用户在我的面板上触发滚动时