Custom image and text in JXLoginPane

View: New views
2 Messages — Rating Filter:   Alert me  

Custom image and text in JXLoginPane

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm using the JXLoginPane and would like to use a custom image and a custom text.
But I've found in the javadoc that's not possible. (setBannerText) "... If a custom banner image is specified, then this is ignored. ..."
Why is it ignored? Isn't there any usecases where I'd like to set a banner text with a custom image? Of course I can set a custom image which contains the text but this isn't
a good idea if I'd like to have i18n.


Marc
[Message sent by forum member 'internalerror' (internalerror)]

http://forums.java.net/jive/thread.jspa?messageID=286660

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: Custom image and text in JXLoginPane

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Text is used to generate image, hence if you provide your image, we do not generate any.
If you want to generate your own image and lay text over it, you have to override BasicLoginPaneUI.getBanner() we can't do it for you as there are thousands different ways you might want to lay text over the image.
[Message sent by forum member 'rah003' (rah003)]

http://forums.java.net/jive/thread.jspa?messageID=289674

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...

LightInTheBox - Buy quality products at wholesale price