public final class RenderingUtils
extends java.lang.Object
Note: This class is not part of the public Looks API. It should be treated as library internal and should not be used by API users. It may be removed or changed with the Looks version without further notice.
Modifier and Type | Method and Description |
---|---|
static void |
drawStringUnderlineCharAt(javax.swing.JComponent c,
java.awt.Graphics g,
java.lang.String text,
int underlinedIndex,
int x,
int y)
Draws the string at the specified location underlining the specified
character.
|
public static void drawStringUnderlineCharAt(javax.swing.JComponent c, java.awt.Graphics g, java.lang.String text, int underlinedIndex, int x, int y)
c
- JComponent that will display the string, may be nullg
- Graphics to draw the text totext
- String to displayunderlinedIndex
- Index of a character in the string to underlinex
- X coordinate to draw the text aty
- Y coordinate to draw the text atCopyright © 2001-2009 JGoodies Karsten Lentzsch. All Rights Reserved.