I tried with the following code using KeyTyped Event like,
private void tfBannerKeyTyped(java.awt.event.KeyEvent evt) {
if(tfBanner.getText().length() > 10)
...
Type: Posts; User: subhvi
I tried with the following code using KeyTyped Event like,
private void tfBannerKeyTyped(java.awt.event.KeyEvent evt) {
if(tfBanner.getText().length() > 10)
...
I dont want to move the cursor.I tried with
evt.dispatchEvent(evt);
But its throwing some exception.
I have one jtextarea component in my GUI.I have to limit the maximum row size is 5.What i have to do?