java - Is it possible to have two keyPressed events at one jTextArea? -


i've been working on project, basic kinetic novel, no frills, basic jtextareas keypressed events. i've been wondering, possible handle more 1 function in 1 keypressed event?

i have tried making 2 .settext functions still doesn't work.

private void jtextarea1keypressed(java.awt.event.keyevent evt) {                                           // first sentence     jtextarea1.append("it midst of war.");     // second sentence     jtextarea1.settext("second sentence"); }                                      


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -