underline « Component « Java Swing Q&A





1. Have setMnemonic underline a character other than the first occurrence    stackoverflow.com

In a re-implementation of an existing program, I would like to keep the message text that users are familiar with. One of the enhancements I'd like to add is a good ...

2. How can i underline a text in JDK5, NOT JDK6    stackoverflow.com

when i search internet i have found a way to underline font like this,

Font f=jLabel1.getFont();
Map<TextAttribute,Object> map = new Hashtable<TextAttribute,Object>();
map.put(TextAttribute.UNDERLINE,TextAttribute.UNDERLINE_ON);
f=f.deriveFont(map);
jLabel1.setFont(f);
it works well on jdk6, however it doesnt work on jdk5, and it ...

3. underline the text    coderanch.com

4. how to get underline    coderanch.com

5. How to make Jagged Underline for a word?    coderanch.com

Hi all, I hope you have seen the jagged underline that comes up in the Vj editor, or in the MS Word etc. Its like underlining a word , but the line seems to be like "~~~~~" and in red colour. Is it possible to make such an effect using Java?. I know to underline, but what i want is a ...

6. Font with underline property    coderanch.com

7. Hello with underline    coderanch.com

8. Dashed underline Font problem    coderanch.com

9. superscript and underline at the same time    coderanch.com

I don't know but I'm going to speculate. What you are seeing is superscripted underlined characters. (Which is something that I have seen in print.) What you want to see is underlined superscripted characters. (I haven't seen that in print but it seems like a reasonable thing to want.) Perhaps the order in which you set up the styling makes a ...