<p>DISABLING DELETE KEY IN JTEXTFIELD</p>
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sumit_jain
Posted On:   Saturday, August 3, 2002 07:51 AM


How do i disable delete key in JTextfield.user shud not be able to delete any text in the textfield by using delete key.

Re: <p>DISABLING DELETE KEY IN JTEXTFIELD</p>

Posted By:   George_Tzallas  
Posted On:   Monday, August 5, 2002 03:06 AM

Sumit hi,


Check JTextField
for more information. You will find an example on how to create your own document. Based on
that implementation you could override method remove(int, int) so as to do nothing


You 'll also find a link to the Java tutorial, which will probably give you a better insight of
JTextFields


Regards


George T

About | Sitemap | Contact