Text Alignment in JComboBox

How can I change text alignment in JComboBox to align-right?

I need it , because I'm adding strings with diferent length.

I tried to do it html in component, but it doesn't work.

I tried <html>"+"<div ALIGN=\"right\">+str+"</html>"

example:

JComboBox c = new JComboBox();

c.addItem("aa");

c.addItem("aaaaa");

c.addItem("aaaaaaaa");

please help!

[425 byte] By [phill10a] at [2007-10-3 10:01:00]
# 1
Just look over here http://forum.java.sun.com/thread.jspa?threadID=786002&tstart=60it has the answer right at the bottom.
Ksushaa at 2007-7-15 5:19:41 > top of Java-index,Desktop,Core GUI APIs...
# 2
thank u very much
phill10a at 2007-7-15 5:19:41 > top of Java-index,Desktop,Core GUI APIs...