jDesktopPane1.add(jScrollPaneMenus);
jScrollPaneMenus.setBounds(10, 25, 245, 345);
jScrollPaneMenus.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
{
ListModel<JDBListData> jListMenusModel = new DefaultComboBoxModel<JDBListData>();
jListMenus = new JDBModuleJList(Common.selectedHostID, Common.sessionID);
jScrollPaneMenus.setViewportView(jListMenus);
jListMenus.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
jListMenus.setFont(Common.font_list);
jListMenus.addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent evt) {
int sel = jListMenus.getSelectedIndex();
if (sel > -1)
{
JDBListData item = (JDBListData) jListMenus.getModel().getElementAt(sel);
populateUnAssignedList(item);
populateAssignedList(item);
setButtonState();
jButtonSave.setEnabled(false);
jButtonUndo.setEnabled(false);
}
}
});
jListMenus.setModel(jListMenusModel);
}
}
{
jScrollPaneUnAssigned = new JScrollPane();
jDesktopPane1.add(jScrollPaneUnAssigned);
jScrollPaneUnAssigned.setBounds(561, 25, 245, 345);
jScrollPaneUnAssigned.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
{
ListModel<JDBListData> jListUnAssignedModel = new DefaultComboBoxModel<JDBListData>();
jListUnAssigned = new JDBModuleJList(Common.selectedHostID, Common.sessionID);
jScrollPaneUnAssigned.setViewportView(jListUnAssigned);
jListUnAssigned.setModel(jListUnAssignedModel);
jListUnAssigned.setFont(Common.font_list);
jListUnAssigned.setCellRenderer(Common.renderer_list_assigned);
jListUnAssigned.setBackground(Common.color_list_unassigned);
}
}
{
jScrollPaneAssigned = new JScrollPane();
jDesktopPane1.add(jScrollPaneAssigned);
jScrollPaneAssigned.setBounds(267, 25, 245, 345);
jScrollPaneAssigned.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
{
ListModel<JDBListData> jListAssignedModel = new DefaultComboBoxModel<JDBListData>();
jListAssigned = new JDBModuleJList(Common.selectedHostID, Common.sessionID);
jScrollPaneAssigned.setViewportView(jListAssigned);
jListAssigned.setModel(jListAssignedModel);
jListAssigned.setFont(Common.font_list);
jListAssigned.setCellRenderer(Common.renderer_list_assigned);
jListAssigned.setBackground(Common.color_list_assigned);