IntelliHints - Minimum width

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

IntelliHints - Minimum width

Postby DMI » Wed Jul 30, 2008 2:05 am

Hi Developers,

how can we set the minimum width of the IntelliHints?

The IntelliHints-List should have the same width as the
jtextfield.

Best regards,

Chris
DMI
 
Posts: 2
Joined: Fri Jul 18, 2008 4:06 am

Postby JIDE Support » Wed Jul 30, 2008 6:43 am

By default we don't want it to have the same width as it can follow caret which means it could start at the very end of the text field.

You can override createList method and force a minimum size on the JList before returnning it.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Postby DMI » Wed Jul 30, 2008 8:16 am

Thank you, for your answer!

We solved it:

((JList)intelliHints.getDelegateComponent()).setFixedCellWidth(700);

Best regards,

Chris
DMI
 
Posts: 2
Joined: Fri Jul 18, 2008 4:06 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 69 guests