⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 application2.jvt

📁 SWT_designer安装软件
💻 JVT
字号:
import
org.eclipse.swt.SWT
org.eclipse.swt.widgets.Display
org.eclipse.swt.widgets.Shell

method
	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			%TypeName% window = new %TypeName%();
			window.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

method
	/**
	 * Open the window
	 */
	public void open() {
		final Display display = Display.getDefault();
		final Shell shell = new Shell();
		shell.setSize(%DefaultFormSize%);
		shell.setText("SWT Application");
		%SWTLocalShellLayout%
		
		shell.open();
		shell.layout();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}
	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -