计算字符串的高度和宽度
摘要:
import java.awt.FontMetrics;public int[] getStringWidth(String str){ JLabel label = new JLabel(); FontMetrics metrics; int textH = 0; int textW = 0; l... 阅读全文
posted @ 2014-09-19 09:54 Mr.SuYang 阅读(591) 评论(0) 推荐(0)