使用Componet中的 FontMetrics getFontMetrics(Font font) 方法取回FontMetrics。 · 使用FontMetrics中的int stringWidth(String str) 取回字串寬度。
確定! 回上一頁