evt.consume()致电后尝试添加
sendMessage()
private void messagetextareaKeyPressed(java.awt.event.KeyEvent evt) { if(evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER) { sendMessage(); evt.consume(); }}
欢迎分享,转载请注明来源:内存溢出
evt.consume()致电后尝试添加
sendMessage()
private void messagetextareaKeyPressed(java.awt.event.KeyEvent evt) { if(evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER) { sendMessage(); evt.consume(); }}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)