java - Is it possible to have two keyPressed events at one jTextArea? -
i've been working on project, basic kinetic novel, no frills, basic jtextarea
s 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
Post a Comment