paintText
public static void paintText(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle textRect,
java.lang.String text,
int textShiftOffset)
Renders a text String in Windows without the mnemonic.
This is here because the WindowsUI hierarchy doesn't match the Component hierarchy. All
the overriden paintText methods of the ButtonUI delegates will call this static method.
- Parameters:
g
- Graphics context
b
- Current button to render
textRect
- Bounding rectangle to render the text.
text
- String to render