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

📄 rootexampler.java

📁 开源的关于SWT开发的图形应用库
💻 JAVA
字号:
package com.swtplus.gallery;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;

public class RootExampler extends Composite implements IWidgetExampler {
	


	private Label l;

	public RootExampler(Composite c) {
		super(c, SWT.NONE);
		setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
		
		
	}

	

	public void setExampleArea(Composite area) {
		area.setLayout(new GridLayout(1,false));
		
		l = new Label(area,SWT.WRAP);
		l.setText("Please select a strategy from the tree.");
		GridData gd = new GridData(SWT.CENTER,SWT.TOP,true,false);
		gd.verticalIndent = 100;
		gd.widthHint = 200;
		l.setLayoutData(gd);
		
		area.layout();
	}

	public void dispose() {
		super.dispose();
		l.dispose();
	}
	
}

⌨️ 快捷键说明

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