package ch.sahits;
import java.util.Iterator;
import java.util.Vector;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.*;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.*;
public class Taz {
private Display display = new Display();
private Shell shell = new Shell(display);
/**
* Default constructor initializes this GUI element
*/
public Taz(){
createControl(getShell());
shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
// If no more entries in event queue
display.sleep();
}
}
display.dispose();
}
/**
* Create all the field instances
* @param parent container
*/
private void init(Composite parent){
}
/**
* Retrive the shell of this GUI element
* @return shell
*/
private Shell getShell(){
return shell;
}
/**
* Set the control up with the layout and the input fields
*/
private void createControl(Composite composite) {
Composite container = shell;//new Composite(composite, SWT.NULL);
init(container);
container.setFont(composite.getFont());
GridLayout layout = new GridLayout();
container.setLayout(layout);
int nColumns = 2;
layout.numColumns = nColumns;
layout.verticalSpacing = 9;
// Create the different elements
}
}