亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? menus.java

?? 自己建立的項目
?? JAVA
字號:
package com.swtSample.widgets;

import org.eclipse.swt.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;

/**
 * This class demonstrates menus
 */
public class Menus {
	private Image star;

	private Image circle;

	private Image square;

	private Image triangle;

	/**
	 * Runs the application
	 */
	public void run() {
		Display display = new Display();
		Shell shell = new Shell(display);
		shell.setText("Menus");
		createContents(shell);
		shell.open();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
		if (circle != null)
			circle.dispose();
		if (star != null)
			star.dispose();
		if (square != null)
			square.dispose();
		if (triangle != null)
			triangle.dispose();
		display.dispose();
	}

	/**
	 * Creates the main window's contents
	 * 
	 * @param shell
	 *            the main window
	 */
	private void createContents(Shell shell) {
		shell.setLayout(new FillLayout());
		createBarMenu(shell);
		createPopUpMenu(shell);
		createNoRadioGroupPopUpMenu(shell);
	}

	/**
	 * Creates the bar menu for the main window
	 * 
	 * @param shell
	 *            the main window
	 */
	private void createBarMenu(Shell shell) {
		// Create the bar menu
		Menu menu = new Menu(shell, SWT.BAR);

		// Create all the items in the bar menu
		MenuItem fileItem = new MenuItem(menu, SWT.CASCADE);
		fileItem.setText("File");
		MenuItem editItem = new MenuItem(menu, SWT.CASCADE);
		editItem.setText("Edit");
		MenuItem formatItem = new MenuItem(menu, SWT.CASCADE);
		formatItem.setText("Format");
		MenuItem viewItem = new MenuItem(menu, SWT.CASCADE);
		viewItem.setText("View");
		MenuItem helpItem = new MenuItem(menu, SWT.CASCADE);
		helpItem.setText("Help");

		// Create the File item's dropdown menu
		Menu fileMenu = new Menu(menu);
		fileItem.setMenu(fileMenu);

		// Create all the items in the File dropdown menu
		MenuItem newItem = new MenuItem(fileMenu, SWT.NONE);
		newItem.setText("New");
		MenuItem openItem = new MenuItem(fileMenu, SWT.NONE);
		openItem.setText("Open...");
		MenuItem saveItem = new MenuItem(fileMenu, SWT.NONE);
		saveItem.setText("Save");
		MenuItem saveAsItem = new MenuItem(fileMenu, SWT.NONE);
		saveAsItem.setText("Save As...");
		new MenuItem(fileMenu, SWT.SEPARATOR);
		MenuItem pageSetupItem = new MenuItem(fileMenu, SWT.NONE);
		pageSetupItem.setText("Page Setup...");
		MenuItem printItem = new MenuItem(fileMenu, SWT.NONE);
		printItem.setText("Print...");
		new MenuItem(fileMenu, SWT.SEPARATOR);
		MenuItem exitItem = new MenuItem(fileMenu, SWT.NONE);
		exitItem.setText("Exit");

		// Set the bar menu as the menu in the shell
		shell.setMenuBar(menu);
	}

	/**
	 * Creates the left-half pop-up menu
	 * 
	 * @param shell
	 *            the main window
	 */
	private void createPopUpMenu(Shell shell) {
		// Create a composite that the pop-up menu will be
		// associated with
		Label label = new Label(shell, SWT.BORDER);
		label.setText("Pop-up Menu");

		// Create the pop-up menu
		Menu menu = new Menu(label);

		// Create the images
		star = new Image(shell.getDisplay(), this.getClass()
				.getResourceAsStream("/images/star.gif"));
		circle = new Image(shell.getDisplay(), this.getClass()
				.getResourceAsStream("/images/circle.gif"));
		square = new Image(shell.getDisplay(), this.getClass()
				.getResourceAsStream("/images/square.gif"));
		triangle = new Image(shell.getDisplay(), this.getClass()
				.getResourceAsStream("/images/triangle.gif"));

		// Create all the items in the pop-up menu
		MenuItem newItem = new MenuItem(menu, SWT.CASCADE);
		newItem.setText("New");
		newItem.setImage(star);
		MenuItem refreshItem = new MenuItem(menu, SWT.NONE);
		refreshItem.setText("Refresh");
		refreshItem.setImage(circle);
		MenuItem deleteItem = new MenuItem(menu, SWT.NONE);
		deleteItem.setText("Delete");

		new MenuItem(menu, SWT.SEPARATOR);

		// Add a check menu item and select it
		MenuItem checkItem = new MenuItem(menu, SWT.CHECK);
		checkItem.setText("Check");
		checkItem.setSelection(true);
		checkItem.setImage(square);

		// Add a push menu item
		MenuItem pushItem = new MenuItem(menu, SWT.PUSH);
		pushItem.setText("Push");

		new MenuItem(menu, SWT.SEPARATOR);

		// Create some radio items
		MenuItem item1 = new MenuItem(menu, SWT.RADIO);
		item1.setText("Radio One");
		item1.setImage(triangle);
		MenuItem item2 = new MenuItem(menu, SWT.RADIO);
		item2.setText("Radio Two");
		MenuItem item3 = new MenuItem(menu, SWT.RADIO);
		item3.setText("Radio Three");

		// Create a new radio group
		new MenuItem(menu, SWT.SEPARATOR);

		// Create some radio items
		MenuItem itema = new MenuItem(menu, SWT.RADIO);
		itema.setText("Radio A");
		MenuItem itemb = new MenuItem(menu, SWT.RADIO);
		itemb.setText("Radio B");
		MenuItem itemc = new MenuItem(menu, SWT.RADIO);
		itemc.setText("Radio C");

		// Create the New item's dropdown menu
		Menu newMenu = new Menu(menu);
		newItem.setMenu(newMenu);

		// Create the items in the New dropdown menu
		MenuItem shortcutItem = new MenuItem(newMenu, SWT.NONE);
		shortcutItem.setText("Shortcut");
		MenuItem iconItem = new MenuItem(newMenu, SWT.NONE);
		iconItem.setText("Icon");

		// Set the pop-up menu as the pop-up for the label
		label.setMenu(menu);
	}

	/**
	 * Creates the No Radio Group pop-up menu
	 * 
	 * @param shell
	 *            the main window
	 */
	private void createNoRadioGroupPopUpMenu(Shell shell) {
		// Create a composite that the pop-up menu will be
		// associated with
		Label label = new Label(shell, SWT.BORDER);
		label.setText("No Radio Group Menu");

		// Create the pop-up menu with the No Radio Group style
		Menu menu = new Menu(shell, SWT.POP_UP | SWT.NO_RADIO_GROUP);
		label.setMenu(menu);

		// Create all the items in the pop-up menu
		MenuItem item1 = new MenuItem(menu, SWT.RADIO);
		item1.setText("Radio One");
		MenuItem item2 = new MenuItem(menu, SWT.RADIO);
		item2.setText("Radio Two");
		MenuItem item3 = new MenuItem(menu, SWT.RADIO);
		item3.setText("Radio Three");

		// Set the pop-up menu as the pop-up for the label
		label.setMenu(menu);
	}

	/**
	 * The application entry point
	 * 
	 * @param args
	 *            the command line arguments
	 */
	public static void main(String[] args) {
		new Menus().run();
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩三级.com| 国产一区二区三区美女| jlzzjlzz欧美大全| 国产女主播在线一区二区| 一区二区欧美在线观看| heyzo一本久久综合| 天天做天天摸天天爽国产一区| 久久超碰97中文字幕| 欧美日韩国产bt| 亚洲1区2区3区视频| 26uuu亚洲综合色欧美| 国产精品国产馆在线真实露脸 | 国产福利一区二区三区视频在线| 亚洲成a人片在线观看中文| 国产精品久久一级| 亚洲精品一区二区三区香蕉| 欧美色男人天堂| 99精品久久只有精品| 国产精品夜夜嗨| 激情久久久久久久久久久久久久久久| 亚洲一区二区在线视频| 国产精品麻豆网站| 欧美国产精品中文字幕| 久久久精品2019中文字幕之3| 日韩三级免费观看| 91精品国产一区二区人妖| 欧洲av一区二区嗯嗯嗯啊| 色88888久久久久久影院野外| 99麻豆久久久国产精品免费优播| 国产.欧美.日韩| 国产精品香蕉一区二区三区| 国产综合色产在线精品| 久久精品国产第一区二区三区| 日本免费新一区视频| 五月综合激情日本mⅴ| 亚洲成人免费看| 亚洲国产精品麻豆| 亚洲成精国产精品女| 五月婷婷综合激情| 青青草国产成人av片免费| 日韩国产在线一| 日韩精品一卡二卡三卡四卡无卡| 亚洲一区二区视频在线观看| 亚洲自拍偷拍图区| 视频一区中文字幕| 久久精品国产亚洲一区二区三区| 蜜桃av一区二区在线观看| 毛片av中文字幕一区二区| 韩国一区二区三区| 懂色av一区二区三区蜜臀| 99久久精品费精品国产一区二区| av在线不卡观看免费观看| 91在线视频免费91| 欧美日韩国产一级二级| 欧美一区二区三区视频在线| 日韩一区二区三区四区| 国产欧美综合色| 最新国产成人在线观看| 成人欧美一区二区三区在线播放| 欧美一区二区三区在线观看视频| 欧美日韩精品一区二区三区蜜桃 | 亚洲麻豆国产自偷在线| 在线播放欧美女士性生活| 制服丝袜成人动漫| 久久久久久久电影| 一区二区三区成人在线视频| 亚洲成a人片在线不卡一二三区| 日本成人在线看| 丰满放荡岳乱妇91ww| 91色.com| 精品国产一区二区在线观看| 亚洲视频在线一区| 六月丁香婷婷色狠狠久久| 成人国产视频在线观看| 欧美老年两性高潮| 欧美激情一区二区三区在线| 亚洲综合丁香婷婷六月香| 久久99精品久久久久| 波波电影院一区二区三区| 在线不卡免费欧美| 国产精品无人区| 天天综合日日夜夜精品| 国产jizzjizz一区二区| 欧美无人高清视频在线观看| 久久综合国产精品| 亚洲制服丝袜一区| 国产成人综合亚洲91猫咪| 欧美日韩三级在线| 国产精品色眯眯| 七七婷婷婷婷精品国产| 一本色道久久综合亚洲精品按摩| 91精品国产一区二区人妖| 亚洲视频在线观看一区| 激情国产一区二区| 欧美人妇做爰xxxⅹ性高电影| 国产精品视频九色porn| 美女尤物国产一区| 欧美无人高清视频在线观看| 中文字幕巨乱亚洲| 狠狠网亚洲精品| 在线播放欧美女士性生活| 亚洲欧洲制服丝袜| 国产精品综合一区二区| 91.com在线观看| 亚洲免费看黄网站| 国产成人av电影| 欧美精品一区二区久久婷婷| 五月综合激情网| 91福利区一区二区三区| 国产精品护士白丝一区av| 久久精品国产99久久6| 欧美老肥妇做.爰bbww| 国产伦精品一区二区三区免费| 久久精品一区二区三区四区| 亚洲国产精品嫩草影院| 91久久免费观看| 国产精品久久一卡二卡| 懂色av一区二区三区免费看| 26uuu欧美| 毛片av一区二区| 日韩午夜在线播放| 舔着乳尖日韩一区| 欧美日韩国产欧美日美国产精品| 亚洲精品中文字幕在线观看| a美女胸又www黄视频久久| 中文字幕欧美日本乱码一线二线| 国产一区在线观看视频| 久久色.com| 国产一区二区精品久久| 久久嫩草精品久久久久| 国产在线视频不卡二| 精品伦理精品一区| 狠狠色丁香婷婷综合久久片| 日韩欧美高清dvd碟片| 蜜臀av一区二区在线免费观看 | 91小视频在线免费看| 亚洲女人小视频在线观看| 91丨porny丨国产| 亚洲日本在线a| 欧美亚洲尤物久久| 亚洲sss视频在线视频| 欧美日韩极品在线观看一区| 亚洲成人免费视频| 日韩欧美一区二区久久婷婷| 捆绑变态av一区二区三区| 精品电影一区二区三区| 国产精品资源站在线| 中文字幕欧美三区| 91久久精品一区二区三| 亚洲v精品v日韩v欧美v专区| 这里是久久伊人| 麻豆成人91精品二区三区| 久久久久9999亚洲精品| www.欧美日韩国产在线| 亚洲影院在线观看| 日韩欧美国产午夜精品| 国产剧情一区二区| 亚洲视频你懂的| 91精品国产一区二区人妖| 黄色小说综合网站| 中文字幕一区二| 欧美日韩国产在线播放网站| 精东粉嫩av免费一区二区三区| 日韩美一区二区三区| 一区二区成人在线| 欧美精品一卡两卡| 国产精品一区二区三区99| 国产精品久久久久影院老司| 91久久精品日日躁夜夜躁欧美| 婷婷丁香久久五月婷婷| 久久精子c满五个校花| 99国产精品国产精品久久| 日韩国产在线观看一区| 国产日本欧美一区二区| 欧美日韩一区精品| 国产美女视频91| 亚洲中国最大av网站| 26uuu久久天堂性欧美| 91视视频在线观看入口直接观看www | 国产精品视频线看| 在线观看亚洲成人| 国产美女一区二区三区| 亚洲一区二区三区激情| 日韩精品一区二区三区四区| 99精品视频在线观看免费| 日本va欧美va精品| 国产精品萝li| 精品国产乱码久久久久久蜜臀| 91啪九色porn原创视频在线观看| 午夜久久久久久| 国产欧美一区二区三区在线老狼| 在线观看一区二区视频| 国产激情偷乱视频一区二区三区| 亚洲国产欧美在线| 国产精品五月天| 精品日韩一区二区三区免费视频| 91日韩精品一区| 国产成人亚洲综合a∨猫咪| 亚洲mv在线观看| 亚洲色图视频网|