Thread
:
Finding the exact length of a string in a JLabel (in pixels)
View Single Post
#
2
(
permalink
)
03-23-2008, 04:33 AM
Clarkey
Member
Join Date: Mar 2008
Posts: 2
I just found the answer. Its getFontMetrics, then use the fontmetrics.stringWidth(text) to find out the width.
This thread can be closed (or deleted) now.
Clarkey
View Public Profile
Send a private message to Clarkey
Find all posts by Clarkey