Hi, I wondered if anyone knows if there is possible to underline a string. I have managed to underline a JLabel, but i can't get it an the String. I'm trying to put a String into the left top corner of a JTextArea, and have set it in a BorderLine, with empty border attached to the JTextArea. Are there any way to get the underline? I'm using Java/Eclipse
The Asker has requested that this question be deleted.
If you object to this action, you have until 5/22/2008 to post a comment describing your objection. This will generate a request in Community Support for Moderator review. If no Expert objects, this question will be deleted.
The Asker has requested that this question be deleted.
If you object to this action, you have until 5/22/2008 to post a comment describing your objection. This will generate a request in Community Support for Moderator review. If no Expert objects, this question will be deleted.
printingA = new JTextArea(10,24); String test = new String("Utskrift"); Border empty = BorderFactory.createEmptyBorder(); Border title = BorderFactory.createTitledBorder(empty,test); utskriftA.setEditable(false); utskriftA.setLineWrap(true); utskriftA.setWrapStyleWord(true); utskriftA.setBorder(title);
I want the String test to get a underline. I tried to put into a JLabel and then a JPanel, but I couldn get it working. Thnx for all the answers btw :)
printingA = new JTextArea(10,24); String test = new String("Utskrift"); Border empty = BorderFactory.createEmptyBorder(); Border title = BorderFactory.createTitledBorder(empty,test); printingA.setEditable(false); printingA.setLineWrap(true); printingA.setWrapStyleWord(true); printingA.setBorder(title);
I want the String test to get a underline. I tried to put into a JLabel and then a JPanel, but I couldn get it working. Thnx for all the answers btw :)
Oops, sry for the last post, I'm norwegian and forgot to change utskriftA into printingA :D