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 -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -