How do you get TextField to show the start of text ??
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, July 30, 2001 01:09 PM

How do you get Jtextfield to show the start of your text after you
lose focus

			
Hi

I want to display the start of my text in the JTextField after I lose
focus i.e. if the text was C:abcdefghiklmno
I want my textfield to show C:abcdef instead of klmno

I thinkyou have to use BoundedRangeModel but I can't get it working
Any help would be greatfully appreciated

Colette

Re: How do you get TextField to show the start of text ??

Posted By:   Sandip_Chitale  
Posted On:   Monday, July 30, 2001 05:30 PM

setCaretPosition(0) on focus gain.
About | Sitemap | Contact