Curved text in Java
问题 I am looking for the simplest way to draw some text around an ellipse object on my app. I need to create a feeling of "cuddling". So far, I've used the Graphics2D class to print my drawings on screen and my "canvas" is a BufferedImage. The width and height of my ellipses are constant at 50,50 respectively. Any suggestions? 回答1: Here's an example of curved text: // slightly modified from the original: // http://examples.oreilly.com/9781565924840/examples/RollingText.java import javax.swing.*;