lblDataType.setHorizontalAlignment(SwingConstants.TRAILING);
lblDataType.setBounds(8, 97, 92, 16);
desktopPane.add(lblDataType);
ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(Common.dataTypes);
comboBoxDataType = new JComboBox4j();
comboBoxDataType.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
enableSave();
}
});
comboBoxDataType.setModel(jComboBox1Model);
comboBoxDataType.setBounds(111, 94, 153, 27);
desktopPane.add(comboBoxDataType);
comboBoxSelectList = new JComboBox4j();
comboBoxSelectList.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
enableSave();
}
});
comboBoxSelectList.addItem("");
LinkedList<String> items = new LinkedList<String>();
items = slist.getSelectListSummary();
if (dict.getSelectListID().equals("")==false)
{
if (items.contains(dict.getSelectListID())==false)
{
items.addFirst(dict.getSelectListID());
}
}
for (int x=0;x<items.size();x++)
{
comboBoxSelectList.addItem(items.get(x));
}
comboBoxSelectList.setBounds(112, 133, 153, 27);
desktopPane.add(comboBoxSelectList);
JLabel4j_std lblSelectListID = new JLabel4j_std(lang.get("lbl_List_ID"));
lblSelectListID.setHorizontalAlignment(SwingConstants.TRAILING);
lblSelectListID.setBounds(8, 138, 92, 16);
desktopPane.add(lblSelectListID);
chckbxVisible = new JCheckBox("");
chckbxVisible.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
enableSave();
}
});
chckbxVisible.setSelected(true);
chckbxVisible.setBounds(112, 172, 28, 23);
desktopPane.add(chckbxVisible);
JLabel4j_std lblVisible = new JLabel4j_std(lang.get("lbl_Visible"));
lblVisible.setHorizontalAlignment(SwingConstants.TRAILING);
lblVisible.setBounds(8, 179, 92, 16);
desktopPane.add(lblVisible);
JLabel4j_std lblUOM = new JLabel4j_std(lang.get("lbl_Material_UOM"));
lblUOM.setHorizontalAlignment(SwingConstants.TRAILING);
lblUOM.setBounds(8, 213, 92, 16);
desktopPane.add(lblUOM);
textFieldUOM = new JTextField4j();
textFieldUOM.addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent arg0) {
enableSave();
}
});
textFieldUOM.setText("");
textFieldUOM.setColumns(10);
textFieldUOM.setBounds(112, 206, 143, 28);
desktopPane.add(textFieldUOM);
spinnerWidth = new JSpinner();
spinnerWidth.setBounds(494, 132, 68, 28);
JSpinner.NumberEditor ne_spinnerWidth = new JSpinner.NumberEditor(spinnerWidth);
ne_spinnerWidth.getTextField().addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
enableSave();
}
});
ne_spinnerWidth.getTextField().setFont(Common.font_std);
spinnerWidth.setEditor(ne_spinnerWidth);
spinnerWidth.setValue(50);
spinnerWidth.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
enableSave();
}
});
desktopPane.add(spinnerWidth);
JLabel4j_std label4j_std = new JLabel4j_std("Width");
label4j_std.setHorizontalAlignment(SwingConstants.TRAILING);
label4j_std.setBounds(392, 136, 92, 16);
desktopPane.add(label4j_std);
comboBoxAlignment = new JComboBox4j(fieldAlignment);
comboBoxAlignment.setBounds(464, 94, 98, 27);
desktopPane.add(comboBoxAlignment);
// ****************** //