How to get the height of the entered text in a JTextPane?
问题 Is there a possible way to get the height of an entered text in a JTextPane ? Pixels would be great but any value that can represent it would do. For example I have entered in the JTextPane this: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the