计算字符串的高度和宽度
摘要: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
posted @ 2014-09-19 09:54
posted @ 2014-09-02 00:43