• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Character width

 
kishor patankar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!! Friend,
Is it possible to define the fix characters width in the TextField? Pl. post the code if possible.
thanks,
Kishor
 
sashkamal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kishor patankar:
hi!! Friend,

Is it possible to define the fix characters width in the TextField? Pl. post the code if possible.

thanks,

Kishor
hi,
i think u can use setFont(new Font "font name",style,size)
hope this solves ur problem.

bye
sashkamal
------------------
sashkamal
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kishor,
I think the "MonoSpaced" font is your best bet. For example:
Font f = new Font( "MonoSpaced", Font.PLAIN, 12 );
Regards,
Manfred.
 
kishor patankar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'Monospace' don't have feeling. Any other way!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic