Width « Icon Image « Java Swing Q&A





2. Width of a String in pixels    coderanch.com

I'm trying to draw a string to the screen but I need it to be right-justified, so the last character of the string is always at exactly the same position on the screen. But the value of the String itself can be any value and any length, e.g. it could be "hello" or it could be "what time is it?". How ...

3. imageIcon width = -1    coderanch.com