This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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