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

4x4 Matrix in Python -

python - PyInstaller UAC not working in onefile mode -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -