Skip to main content
Participant
May 1, 2014
Question

how can I apply htmlText to ComboBox?

  • May 1, 2014
  • 2 replies
  • 372 views

I can affect the list part, but not the top selection area using a custom CellRenderer.

I can access that area with mulitline and wordWrap, but I can't seem to locate the necessary label field or I'm just missing something.

What you see in the image is data loaded in via XML inside a CDATA tag with HTML tags to break the two lines.

Any help would be greatly appreciated.

Thank you.

This topic has been closed for replies.

2 replies

dq212Author
Participant
May 5, 2014

Thank you very much for that. Works great now. Still a little dodgy on some the inner workings of the Components, but you really helped me out of a jam.

robdillon
Participating Frequently
May 1, 2014

You don't really need to use htmlText. You can just add a "\n" in the line that you want to break. As in:

Line one \n Line two.

dq212Author
Participant
May 1, 2014

You know something, I tried that, I just ended up seeing the /n in the ComboBox.

I will investigate some more and see if I created some other conflict to keep that from working.

dq212Author
Participant
May 1, 2014

Yeah,

I'm still a bit perplexed here. Here is a pic.