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

📄 11.txt

📁 qq的界面设计但是不太全
💻 TXT
字号:
import org.eclipse.swt.SWT;


public class Affi extends Composite {

	private Text text_4;
	private Text text_3;
	private Text text_2;
	private Text text_1;
	private Text text;
	private Combo combo_2;
	private Combo combo_1;
	private Combo combo;
	private String number;
	/**
	 * Create the composite
	 * @param parent
	 * @param style
	 */
	public Affi(Composite parent, int style,String number) {
		super(parent, style);
		this.number=number;
		final GridLayout gridLayout = new GridLayout();
		gridLayout.numColumns = 2;
		setLayout(gridLayout);
		setBackground(SWTResourceManager.getColor(255, 255, 255));

		final Label label = new Label(this, SWT.NONE);
		label.setBackground(SWTResourceManager.getColor(255, 255, 255));
		label.setText("国家/地区:");

		combo = new Combo(this, SWT.NONE);
		combo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

		final Label label_1 = new Label(this, SWT.NONE);
		label_1.setBackground(SWTResourceManager.getColor(255, 255, 255));
		label_1.setText("省份:");

		combo_1 = new Combo(this, SWT.NONE);
		combo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

		final Label label_2 = new Label(this, SWT.NONE);
		label_2.setBackground(SWTResourceManager.getColor(255, 255, 255));
		label_2.setText("城市:");

		combo_2 = new Combo(this, SWT.NONE);
		combo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

		final Label label_3 = new Label(this, SWT.NONE);
		label_3.setBackground(SWTResourceManager.getColor(255, 255, 255));
		label_3.setText("邮政编码:");

		text = new Text(this, SWT.BORDER);
		text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

		final Group group = new Group(this, SWT.NONE);
		group.setText("私人联系方式");
		group.setBackground(SWTResourceManager.getColor(255, 255, 255));
		final GridData gridData = new GridData(SWT.LEFT, SWT.FILL, false, false, 32, 1);
		gridData.widthHint = 366;
		gridData.heightHint = 159;
		group.setLayoutData(gridData);
		final GridLayout gridLayout_1 = new GridLayout();
		gridLayout_1.makeColumnsEqualWidth = true;
		gridLayout_1.numColumns = 4;
		group.setLayout(gridLayout_1);

		final Label label_4 = new Label(group, SWT.NONE);
		label_4.setBackground(SWTResourceManager.getColor(255, 255, 255));
		label_4.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
		label_4.setText("以下资料");

		final Button button = new Button(group, SWT.RADIO);
		button.setSelection(true);
		button.setText("完全公开");

		final Button button_1 = new Button(group, SWT.RADIO);
		button_1.setText("仅好友可见");

		final Button button_2 = new Button(group, SWT.RADIO);
		button_2.setText("完全保密");

		final Label label_5 = new Label(group, SWT.NONE);
		label_5.setBackground(SWTResourceManager.getColor(255, 255, 255));
		label_5.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
		label_5.setText("电子邮件:");

		text_1 = new Text(group, SWT.BORDER);
		text_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
		new Label(group, SWT.NONE);

		final Label label_6 = new Label(group, SWT.NONE);
		label_6.setBackground(SWTResourceManager.getColor(255, 255, 255));
		label_6.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
		label_6.setText("联系地址:");

		text_2 = new Text(group, SWT.BORDER);
		text_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
		new Label(group, SWT.NONE);

		final Label label_7 = new Label(group, SWT.NONE);
		label_7.setBackground(SWTResourceManager.getColor(255, 255, 255));
		label_7.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
		label_7.setText("手机号码:");

		text_3 = new Text(group, SWT.BORDER);
		text_3.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));

		final Button button_3 = new Button(group, SWT.NONE);
		button_3.setLayoutData(new GridData());
		button_3.setText("完全绑定");

		final Label label_8 = new Label(group, SWT.NONE);
		label_8.setBackground(SWTResourceManager.getColor(255, 255, 255));
		label_8.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false));
		label_8.setText("电话号码:");

		text_4 = new Text(group, SWT.BORDER);
		final GridData gridData_1 = new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1);
		gridData_1.widthHint = 273;
		text_4.setLayoutData(gridData_1);
		new Label(group, SWT.NONE);
		//
	}

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

	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

	

}

⌨️ 快捷键说明

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