Hi Christoph,

setMargin() is not an API on JComboBox hence it is not provided on
ULCComboBox.

There was a problem with margin in JRE 1.4 (see the link below) which has
been fixed in JRE 1.5:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4773496

You will see a marked improvement if you run with JRE 1.5.

There are several solutions suggested here:

http://www.codeguru.com/forum/showthread.php?threadid=285612

One option is to do an extension. Myabe on basic combobox get the editor
which should be a text field and set margin on textfield.

Another is to define a cell renderer for the renderer combobox.

I hope this helps.

Thanks and regards,

Janak

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Christoph Brill
>Sent: Thursday, March 15, 2007 6:38 PM
>To: [email protected]
>Subject: [ULC-developer] Margin on ULCCombobox
>
>
>Hi list,
>
>I ran into a problem when I added a ULCCombobox into a Table. I need to
>keep the originial row height so I reduced the font size. The problem
>is, that I cannot set the margin of an ULCCombobox to reduce the
>distance of the text to it's border.
>
>On other compontents (i.e. ULCTable) I can call setMargin, but this
>method does not exist for an ULCCombobox.
>
>Should I fill a feature request for that or am I missing something?
>
>Thanks in advance.
>
>
>--
>Mit freundlichen Grüßen/Kind Regards,
>  Christoph Brill
>
>Telefon 0261/50086-18
>Telefax 0261/50086-29
>E-Mail: [EMAIL PROTECTED]
>http://www.huebinet.de
>
>
>HUEBINET Informationsmanagement GmbH & Co. KG
>Maria Trost 23
>56070 Koblenz
>
>Sitz und Registergericht: Koblenz HRA 5329
>Persönlich haftender Gesellschafter der KG: HUEBINET GmbH
>Sitz und Registergericht: Koblenz HRB 6857
>
>Geschäftsführung: Frank Hüttmann; Michael Biemer
>
>_______________________________________________
>ULC-developer mailing list
>[email protected]
>http://lists.canoo.com/mailman/listinfo/ulc-developer

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to