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 eye1 » Thu Jun 12, 2008 4:21 am
Is it possible to add and/or remove items in CheckBoxList after it is constructed.
like:
checkBoxList.addItem("FIRST");
checkBoxList.removeItem("FIRST");
Thanks
-
eye1
-
- Posts: 30
- Joined: Thu Jun 12, 2008 3:33 am
by eye1 » Thu Jun 12, 2008 6:15 am
Ok I solved this
init:
- Code: Select all
CheckBoxList cblTags = new CheckBoxList();
DefaultListModel model = new DefaultListModel();
cblTags.setModel(model);
runtime:
- Code: Select all
DefaultListModel model = (DefaultListModel)cblTags.getModel();
model.addElement("ITEM 1");
-
eye1
-
- Posts: 30
- Joined: Thu Jun 12, 2008 3:33 am
Return to JIDE Common Layer Open Source Project Discussion (Community Driven)
Who is online
Users browsing this forum: No registered users and 10 guests