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.
by td84 » Sun Apr 17, 2016 4:22 pm
Good morning all,
i'm using CheckBoxListComboBox (com.jidesoft.combobox.CheckBoxListComboBox) in a project.
I would like to ask you, if it's possible:
1) to remove the Cancel button from the panel, that contains the items?
2) to add a mouselistener to each item? (I would like to select the checkbox also by double-clicking a list item)
Thank you for your help,
Daniel
-
td84
-
- Posts: 32
- Joined: Tue Dec 08, 2015 4:02 pm
by JIDE Support » Mon Apr 18, 2016 9:38 am
See the comments below.
- Code: Select all
return new CheckBoxListExComboBox(items, String[].class) {
@Override
protected MultiSelectListChooserPanel createListChooserPanel(ComboBoxModel dataModel, Class<?> clazz, ConverterContext converterContext) {
return new CheckBoxListChooserPanel(dataModel, clazz, converterContext,
getDialogOKAction(), getDialogCancelAction()) {
@Override
public Component createButtonPanel(int alignment) {
Component buttonPanel = super.createButtonPanel(alignment);
// remove the button from the panel. The Cancel button getActionCommand is "Cancel".
return buttonPanel;
}
@Override
protected void setupList(final JList list) {
super.setupList(list);
// add mouse listener here to accept double click
}
};
}
};
JIDE Software Technical Support Team
-
JIDE Support
- Site Admin
-
- Posts: 37219
- Joined: Sun Sep 14, 2003 10:49 am
-
Return to JIDE Common Layer Open Source Project Discussion (Community Driven)
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 10 guests