jtable has a default enter keylistener that moves to the next row as soon as enter is pressed
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kunal_thacker
Posted On:   Saturday, December 14, 2002 03:09 AM

I want to remove that keylistener and wants to dispose the frame as soon as i press enter. Right now what happens is that I cannot scan the value of a particular cell as the focus goes on the next row.

Re: jtable has a default enter keylistener that moves to the next row as soon as enter is pressed

Posted By:   Anonymous  
Posted On:   Monday, December 16, 2002 12:08 AM

Try to rewrite the method protected boolean processKeyBinding( KeyStroke ks, KeyEvent e, int condition,
boolean pressed)
of JTable. If KeyEvent corresponds to enter key, close your frame.
About | Sitemap | Contact