• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem of Oval And String

 
Sunesh Kumar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I am developing an Applet Application in which there is a filled Circle done with the method fillOval() now i want to place a String in that circle that fits exactly in the cirle.
I think there may be an option of Wrap like that

Thanks in advance...Sorry for my poor english

Bye
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there is an option to auto-wrap text you want to draw in a Graphics object. You can, however, find out how big text would be (in terms of pixels) by using the FontMetrics class, and scale or wrap it accordingly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic