Underline in a JTextfield  
Author Message
Sameer





PostPosted: 2005-5-31 2:09:00 Top

java-programmer, Underline in a JTextfield Is it possible to display underline in a JTextfield? It is possible
using styles in styled text area. But how to do it on JTextfield? What
is the related function?
-Sameer

 
jonck





PostPosted: 2005-5-31 17:01:00 Top

java-programmer >> Underline in a JTextfield > Is it possible to display underline in a JTextfield? It is possible
> using styles in styled text area. But how to do it on JTextfield? What
> is the related function?

Check out the StyledEditorKit and the
JTextComponent.getActionMap().get("font-underline") action.

 
usenet





PostPosted: 2005-6-3 1:26:00 Top

java-programmer >> Underline in a JTextfield Sameer <email***@***.com> wrote:

> Is it possible to display underline in a JTextfield? It is possible
> using styles in styled text area. But how to do it on JTextfield? What
> is the related function?

There is none.


Christian