Dies ist eine alte Version des Dokuments!


Tree

Tree tree = new Tree(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
tree.setHeaderVisible(false);
TreeColumn column1 = new TreeColumn(tree, SWT.LEFT);
tree.setLinesVisible(true);
column1.setAlignment(SWT.LEFT);
column1.setText("Land");
column1.setWidth(160);
TreeColumn column2 = new TreeColumn(tree, SWT.CENTER);
column2.setAlignment(SWT.LEFT);
column2.setText("Stadt");
column2.setWidth(80);
TreeColumn column3 = new TreeColumn(tree, SWT.RIGHT);
column3.setAlignment(SWT.LEFT);
column3.setText("Straße");
column3.setWidth(80);
TreeColumn column4 = new TreeColumn(tree, SWT.RIGHT);
column4.setAlignment(SWT.LEFT);
column4.setText("Nr.");
column4.setWidth(80);
 
TreeItem item00 = new TreeItem(tree, SWT.NONE);
item00.setText(new String[] { "Deutschland", "", "", ""});
TreeItem item01  = new TreeItem(item00, SWT.NONE);
item01.setText(new String[] { "Berger-Aeby Olivia", "", "12.07.1984", "GZR"});
TreeItem item02  = new TreeItem(item00, SWT.NONE);
item02.setText(new String[] { "Berger Luca", "", "17.03.1976", "GZR"});
TreeItem item10 = new TreeItem(item00, SWT.NONE);
item10.setText(new String[] { "Privatkonto", "80-444-5", "", ""});
TreeItem item11  = new TreeItem(item10, SWT.NONE);
item11.setText(new String[] { "Aeby Joel", "", "12.07.1982", "SZR"});
TreeItem item20 = new TreeItem(item00, SWT.NONE);
item20.setText(new String[] { "Depositokonto", "70-5632-5", "", ""});
TreeItem item21  = new TreeItem(item20, SWT.NONE);
item21.setText(new String[] { "Aeby Joel", "", "12.07.1982", "SZR"});
TreeItem item22  = new TreeItem(item20, SWT.NONE);
item22.setText(new String[] { "Aeby Karol", "", "24.05.1942", "SZR"});

Eigene Werkzeuge
Werkzeuge

gratis Counter by GOWEB
seit 9.10.2007