4
package hr.fer.tel.sensorsimulator;
6
import org.eclipse.swt.layout.FillLayout;
7
import org.eclipse.swt.widgets.Display;
8
import org.eclipse.swt.widgets.Shell;
9
import org.openintents.tools.sensorsimulator.swt.SensorSimulatorSwt;
13
* @author Lee Sanghoon
15
public class SensorSimulatorSwtMain {
18
Display display = new Display();
19
Shell shell = new Shell(display);
20
shell.setText("Sensor Simulator");
21
shell.setSize(800, 600);
22
createContents(shell);
24
while (!shell.isDisposed()) {
25
if (!display.readAndDispatch()) {
36
private void createContents(Shell shell) {
37
shell.setLayout(new FillLayout());
39
new SensorSimulatorSwt(shell);
45
public static void main(String[] args) {
46
new SensorSimulatorSwtMain().run();