1

我想删除在 SimpleComboBox 上展开时出现的阴影。我得到阴影作为附加图像。

下面是我的代码

private SimpleComboBox<String> getSimpleComboBox(List<String> valuesOfComboBox, String objectToDisplay, boolean isVisible, String fieldLabel, boolean isTypeAhead, TriggerAction triggerAction, String id, boolean isShadowVisible){
        SimpleComboBox<String> comboBoxForUserAccount = new SimpleComboBox<String>();
        comboBoxForUserAccount.setVisible(isVisible);
        comboBoxForUserAccount.setShadow(false);

        if(valuesOfComboBox!=null)
            comboBoxForUserAccount.add(valuesOfComboBox);


        if(objectToDisplay!=null)
            comboBoxForUserAccount.setSimpleValue(objectToDisplay);
        comboBoxForUserAccount.setFieldLabel(fieldLabel);
        comboBoxForUserAccount.setTypeAhead(isTypeAhead);
        comboBoxForUserAccount.setTriggerAction(triggerAction);

        if(id!=null)
            comboBoxForUserAccount.setId(id);
        return comboBoxForUserAccount;
    }

谢谢在此处输入图像描述

4

0 回答 0