Hi all,
I am using SWT designer.
I wanted to make an item , that allow me to add elements to it.
And each time I wanted to add an element I wanted that a dialog appears asking me to enter the element; of course after clicking on it.
myItem = new CCombo(shlBusinessProcess, SWT.BORDER);
myItem.addMouseListener(new MouseAdapter() {
public void mouseDoubleClick(MouseEvent e) {
String name = JOptionPane.showInputDialog( "Enter the element's name" );
myitem.add(name);
}
});//this code works
In addition; I want that each time I click on a certain element of myItem, a check box appears, a button (named "OK") appears, and a button ("submit") appears.
Suppose for the first element("moni") of MyItem: the user checks the check box( became true), when he clicks OK, the check box and the OK button disappear.
Suppose for the second element("graz") of MyItem: the user did not check the check box(remains false), when he clicks OK, the check box and the OK button disappear.
my objective is that I want to print, when the submit button is clicked (after entering all elements), each element of MyItem and the boolean property false or true of this element (which I get from the checkbox of this element)
example output: moni true
graz false
Thank you guys, I know that I asked a lot but I am still new and I need some push:)
Adolf