1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class TstButtons extends ApplicationWindow{
public TstButtons(Shell shell) {
super(shell);
}
public static void main(String[] args) {
Display displaySplashScreen = new Display();
Shell shell = new Shell(displaySplashScreen, SWT.BORDER | SWT.CLOSE);
shell.setSize(200, 100);
shell.setText("test");
TstButtons loginWindow = new TstButtons(shell);
loginWindow.setBlockOnOpen(true);
loginWindow.open();
}
} |
Partager