Hi,

I am trying to use a ULCLookupTextField as an editor in a ULCTable, but without 
success. The lookup field works fine standalone, but inside the table I just 
get a text field. I have tried adding it as a parameter to a DefaultCellEditor:

mHeimatortTable.getColumnModel().getColumn(1).setCellEditor(
            new 
DefaultCellEditor(GUIUtils.createKonstanteDropDown(Nation.getEnumCollection(),
                getLocale(), true)));


And I tried writing a custom cell editor

public class PLZCellEditor
    extends DefaultCellEditor
{
    private static final long serialVersionUID = -5383602841474707283L;

    public PLZCellEditor(ULCLookupTextField editor)
    {
        super(editor);
    }

    @Override
    public IEditorComponent getTableCellEditorComponent(ULCTable table, Object 
value, int row)
    {
        return getEditorComponent();
    }
}

Neither works. Anyone have any ideas? (A ComboBox works fine in the same table)

With best wishes

John Prince


John Prince 
Bedag Informatik AG
Software-Entwicklung 
Gutenbergstrasse 1
3011 Bern 
Telefon:        +41 (0)31 633 21 21 (direkt 633 22 25)
Fax:            +41 (0)31 633 25 55
E-Mail:         mailto:[EMAIL PROTECTED] 
www.bedag.ch 



Reply via email to