> Does anyone know of a way to get an underline to go even lower? I need a > couple pixels of separation between the bottom of the character and the top > of the underline. Using this attribute, they are touching. > > styledText.addAttribute(TextAttribute.UNDERLINE, > TextAttribute.UNDERLINE_LOW_TWO_PIXEL, 0, 1);
Unfortunately, the UNDERLINE text attribute is not very flexible. The current implementation in Sun's reference JVM also renders the underline a bit high, this is a bug. Do you need more flexibility in the position/thickness/appearance/color of the underline, or do you just want it in the right place? Doug =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
