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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? browser.java

?? Gmail API for Java 一個gmail信箱的客戶端
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
	 * com.Ostermiller.util.BrowserDialog.browse<br>
	 * com.Ostermiller.util.BrowserDialog.ok<br>
	 * com.Ostermiller.util.BrowserDialog.cancel<br>
	 *
	 * @param owner The frame that owns this dialog.
	 * @param props contains the strings used in the dialog.
	 * @deprecated  Use the com.Ostermiller.util.Browser resource bundle to set strings for the given locale.
	 *
	 * @since ostermillerutils 1.00.00
	 */
	public static boolean dialogConfiguration(Frame owner, Properties props){
		if (Browser.dialog == null){
			Browser.dialog = new BrowserDialog(owner);
		}
		if (props != null){
			Browser.dialog.setProps(props);
		}
		Browser.dialog.show();
		return Browser.dialog.changed();
	}

	/**
	 * Where the command lines are typed.
	 *
	 * @since ostermillerutils 1.00.00
	 */
	private static JTextArea description;

	/**
	 * Where the command lines are typed.
	 *
	 * @since ostermillerutils 1.00.00
	 */
	private static JTextArea commandLinesArea;

	/**
	 * The reset button.
	 *
	 * @since ostermillerutils 1.00.00
	 */
	private static JButton resetButton;

	/**
	 * The browse button.
	 *
	 * @since ostermillerutils 1.00.00
	 */
	private static JButton browseButton;

	/**
	 * The label for the field in which the name is typed.
	 *
	 * @since ostermillerutils 1.00.00
	 */
	private static JLabel commandLinesLabel;

	/**
	 * File dialog for choosing a browser
	 *
	 * @since ostermillerutils 1.00.00
	 */
	private static JFileChooser fileChooser;

	/**
	 * A panel used in the options dialog.  Null until getDialogPanel() is called.
	 */
	private static JPanel dialogPanel = null;
	private static Window dialogParent = null;

	/**
	 * If you wish to add to your own dialog box rather than have a separate
	 * one just for the browser, use this method to get a JPanel that can
	 * be added to your own dialog.
	 *
	 * mydialog.add(Browser.getDialogPanel(mydialog));
	 * Browser.initPanel();
	 * mydialog.show();
	 * if (ok_pressed){
	 * &nbsp;&nbsp;Browser.userOKedPanelChanges();
	 * }
	 *
	 * @param parent window into which panel with eventually be placed.
	 * @since ostermillerutils 1.02.22
	 */
	public static JPanel getDialogPanel(Window parent){
		dialogParent = parent;
		if (dialogPanel == null){
			commandLinesArea = new JTextArea("", 8, 40);
			JScrollPane scrollpane = new JScrollPane(commandLinesArea);
			resetButton = new JButton(labels.getString("dialog.reset"));
			browseButton = new JButton(labels.getString("dialog.browse"));
			commandLinesLabel = new JLabel(labels.getString("dialog.commandLines"));
			description = new JTextArea(labels.getString("dialog.description"));
			description.setEditable(false);
			description.setOpaque( false );

			ActionListener actionListener = new ActionListener() {
				public void actionPerformed(ActionEvent e){
					Object source = e.getSource();
					if (source == resetButton){
						setCommands(Browser.defaultCommands());
					} else if (source == browseButton){
						if (fileChooser == null){
							fileChooser = new JFileChooser();
						}
						if (fileChooser.showOpenDialog(dialogParent) == JFileChooser.APPROVE_OPTION){
							String app = fileChooser.getSelectedFile().getPath();
							StringBuffer sb = new StringBuffer(2 * app.length());
							for (int i=0; i<app.length(); i++){
								char c = app.charAt(i);
								// escape these two characters so that we can later parse the stuff
								if (c == '\"' || c == '\\') {
									sb.append('\\');
								}
								sb.append(c);
							}
							app = sb.toString();
							if (app.indexOf(" ") != -1){
								app = '"' + app + '"';
							}
							String commands = commandLinesArea.getText();
							if (commands.length() != 0 && !commands.endsWith("\n") && !commands.endsWith("\r")){
								commands += "\n";
							}
							commandLinesArea.setText(commands + app + " {0}");
						}
					}
				}
			};

			GridBagLayout gridbag = new GridBagLayout();
			GridBagConstraints c = new GridBagConstraints();
			c.insets.top = 5;
			c.insets.bottom = 5;
			dialogPanel = new JPanel(gridbag);
			dialogPanel.setBorder(BorderFactory.createEmptyBorder(10, 20, 5, 20));
			JLabel label;


			c.gridwidth = GridBagConstraints.REMAINDER;
			c.anchor = GridBagConstraints.WEST;
			gridbag.setConstraints(description, c);
			dialogPanel.add(description);

			c.gridy = 1;
			c.gridwidth = GridBagConstraints.RELATIVE;
			gridbag.setConstraints(commandLinesLabel, c);
			dialogPanel.add(commandLinesLabel);
			JPanel buttonPanel = new JPanel();
			c.anchor = GridBagConstraints.EAST;
			browseButton.addActionListener(actionListener);
			buttonPanel.add(browseButton);
			resetButton.addActionListener(actionListener);
			buttonPanel.add(resetButton);
			gridbag.setConstraints(buttonPanel, c);
			dialogPanel.add(buttonPanel);

			c.gridy = 2;
			c.gridwidth = GridBagConstraints.REMAINDER;
			c.anchor = GridBagConstraints.WEST;
			gridbag.setConstraints(scrollpane, c);
			dialogPanel.add(scrollpane);
		}
		return dialogPanel;
	}


	/**
	 * A modal dialog that presents configuration option for this class.
	 *
	 * @since ostermillerutils 1.00.00
	 */
	private static class BrowserDialog extends JDialog {

		/**
		 * The OK button.
		 *
		 * @since ostermillerutils 1.00.00
		 */
		private JButton okButton;

		/**
		 * The cancel button.
		 *
		 * @since ostermillerutils 1.00.00
		 */
		private JButton cancelButton;

		/**
		 * The label for the field in which the name is typed.
		 *
		 * @since ostermillerutils 1.00.00
		 */
		private JLabel commandLinesLabel;

		/**
		 * update this variable when the user makes an action
		 *
		 * @since ostermillerutils 1.00.00
		 */
		private boolean pressed_OK = false;


		/**
		 * Properties that are used:
		 * com.Ostermiller.util.BrowserDialog.title<br>
		 * com.Ostermiller.util.BrowserDialog.description<br>
		 * com.Ostermiller.util.BrowserDialog.label<br>
		 * com.Ostermiller.util.BrowserDialog.defaults<br>
		 * com.Ostermiller.util.BrowserDialog.browse<br>
		 * com.Ostermiller.util.BrowserDialog.ok<br>
		 * com.Ostermiller.util.BrowserDialog.cancel<br>
		 *
		 * @deprecated  Use the com.Ostermiller.util.Browser resource bundle to set strings for the given locale.
		 *
		 * @since ostermillerutils 1.00.00
		 */
		private void setProps(Properties props){
			if (props.containsKey("com.Ostermiller.util.BrowserDialog.title")){
				setTitle(props.getProperty("com.Ostermiller.util.BrowserDialog.title"));
			}
			if (props.containsKey("com.Ostermiller.util.BrowserDialog.description")){
				description.setText(props.getProperty("com.Ostermiller.util.BrowserDialog.description"));
			}
			if (props.containsKey("com.Ostermiller.util.BrowserDialog.label")){
				commandLinesLabel.setText(props.getProperty("com.Ostermiller.util.BrowserDialog.label"));
			}
			if (props.containsKey("com.Ostermiller.util.BrowserDialog.defaults")){
				resetButton.setText(props.getProperty("com.Ostermiller.util.BrowserDialog.defaults"));
			}
			if (props.containsKey("com.Ostermiller.util.BrowserDialog.browse")){
				browseButton.setText(props.getProperty("com.Ostermiller.util.BrowserDialog.browse"));
			}
			if (props.containsKey("com.Ostermiller.util.BrowserDialog.ok")){
				okButton.setText(props.getProperty("com.Ostermiller.util.BrowserDialog.ok"));
			}
			if (props.containsKey("com.Ostermiller.util.BrowserDialog.cancel")){
				cancelButton.setText(props.getProperty("com.Ostermiller.util.BrowserDialog.cancel"));
			}
			pack();
		}

		/**
		 * Whether the user pressed the applied changes.
		 * true if OK was pressed or the user otherwise applied new changes,
		 * false if cancel was pressed or dialog was closed with no changes.
		 * If called before the dialog is displayed and closed, the results
		 * are not defined.
		 *
		 * @returns if the user made changes to the browser configuration.
		 *
		 * @since ostermillerutils 1.00.00
		 */
		public boolean changed() {
			return pressed_OK;
		}

		/**
		 * Create this dialog with the given parent and title.
		 *
		 * @param parent window from which this dialog is launched
		 * @param title the title for the dialog box window
		 *
		 * @since ostermillerutils 1.00.00
		 */
		public BrowserDialog(Frame parent) {
			super(parent, labels.getString("dialog.title"), true);
			setLocationRelativeTo(parent);
			// super calls dialogInit, so we don't need to do it again.
		}

		/**
		 * Called by constructors to initialize the dialog.
		 *
		 * @since ostermillerutils 1.00.00
		 */
		protected void dialogInit(){

			super.dialogInit();

			getContentPane().setLayout(new BorderLayout());

			getContentPane().add(getDialogPanel(this), BorderLayout.CENTER);

			JPanel panel = new JPanel(new FlowLayout());
			okButton = new JButton(labels.getString("dialog.ok"));
			okButton.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e){
					pressed_OK = true;
					BrowserDialog.this.setVisible(false);
				}
			});
			panel.add(okButton);
			cancelButton = new JButton(labels.getString("dialog.cancel"));
			cancelButton.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e){
					pressed_OK = false;
					BrowserDialog.this.setVisible(false);
				}
			});
			panel.add(cancelButton);

			getContentPane().add(panel, BorderLayout.SOUTH);

			pack();
		}

		/**
		 * Shows the dialog.
		 *
		 * @since ostermillerutils 1.00.00
		 * @deprecated use setVisible(true);
		 */
		public void show(){
			setVisible(true);
		}

		public void setVisible(boolean visible){
			if (visible){
				initPanel();
				super.setVisible(true);
				if (pressed_OK){
					userOKedPanelChanges();
				}
			} else {
				super.setVisible(false);
			}
		}


	}

	private static void setCommands(String[] newExec){
		StringBuffer sb = new StringBuffer();
		for (int i=0; newExec != null && i < newExec.length; i++){
			sb.append(newExec[i]).append('\n');
		}
		commandLinesArea.setText(sb.toString());
	}

	/**
	 * If you are using the getDialogPanel() method to create your own dialog, this
	 * method should be called every time before you display the dialog.
	 *
	 * mydialog.add(Browser.getDialogPanel(mydialog));
	 * Browser.initPanel();
	 * mydialog.show();
	 * if (ok_pressed){
	 * &nbsp;&nbsp;Browser.userOKedPanelChanges();
	 * }
	 *
	 * @since ostermillerutils 1.02.22
	 */
	public static void initPanel(){
		setCommands(exec);
	}

	/**
	 * If you are using the getDialogPanel() method to create your own dialog, this
	 * method should be called after you display the dialog if the user pressed ok.
	 *
	 * mydialog.add(Browser.getDialogPanel(mydialog));
	 * Browser.initPanel();
	 * mydialog.show();
	 * if (ok_pressed){
	 * &nbsp;&nbsp;Browser.userOKedPanelChanges();
	 * }
	 *
	 * @since ostermillerutils 1.02.22
	 */
	public static void userOKedPanelChanges(){
		java.util.StringTokenizer tok = new java.util.StringTokenizer(commandLinesArea.getText(), "\r\n", false);
		int count = tok.countTokens();
		String[] exec = new String[count];
		for (int i=0; i < count; i++){
			exec[i] = tok.nextToken();
		}
		Browser.exec = exec;
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区高清| 亚洲精品视频自拍| 成人免费观看男女羞羞视频| 亚洲精品自拍动漫在线| 日韩片之四级片| 在线观看精品一区| 国产精品亚洲综合一区在线观看| 中文字幕欧美一| 久久先锋影音av| 日韩一区二区三区四区五区六区 | 三级久久三级久久| 国产精品久久久久久久久久免费看| 欧美精品久久久久久久多人混战| zzijzzij亚洲日本少妇熟睡| 九九视频精品免费| 日韩电影一区二区三区| 一级中文字幕一区二区| 国产精品麻豆99久久久久久| 精品少妇一区二区| 欧美一级国产精品| 欧美日韩在线直播| 欧美色手机在线观看| 色呦呦国产精品| 97国产一区二区| bt7086福利一区国产| 国产91精品免费| 激情图片小说一区| 麻豆国产精品视频| 美女网站一区二区| 男人的天堂亚洲一区| 日本怡春院一区二区| 婷婷丁香久久五月婷婷| 亚洲永久免费视频| 夜夜精品视频一区二区| 亚洲一区免费观看| 亚洲精品videosex极品| 一区二区三区四区蜜桃| 亚洲精品视频免费观看| 亚洲私人黄色宅男| 亚洲欧美日韩电影| 亚洲在线视频网站| 日韩精品一级中文字幕精品视频免费观看| 亚洲与欧洲av电影| 午夜私人影院久久久久| 婷婷夜色潮精品综合在线| 午夜欧美一区二区三区在线播放| 婷婷久久综合九色综合绿巨人| 日韩精品久久久久久| 久久99精品国产.久久久久久| 麻豆极品一区二区三区| 国产一本一道久久香蕉| 波多野结衣中文字幕一区 | 激情综合亚洲精品| 精品一区二区三区的国产在线播放| 久久国产尿小便嘘嘘| 国产成人高清在线| 色婷婷av久久久久久久| 91麻豆精品国产91久久久久久久久 | 国内精品免费**视频| 丰满放荡岳乱妇91ww| 91蝌蚪porny| 欧美日韩国产精选| 精品国产乱码久久久久久闺蜜| 国产片一区二区三区| 亚洲视频免费观看| 一区二区在线看| 久久精品国产网站| 97se亚洲国产综合自在线不卡| 欧美亚洲免费在线一区| 精品久久久影院| 国产精品毛片久久久久久 | 国产成人免费视| 色94色欧美sute亚洲线路一ni | 午夜一区二区三区视频| 狠狠色丁香久久婷婷综| 波多野结衣中文字幕一区| 欧美日韩不卡在线| 久久精品一区二区三区av| 亚洲精品视频免费看| 久久99国产精品麻豆| 粉嫩av一区二区三区粉嫩| 欧美色综合网站| 国产亚洲自拍一区| 亚洲制服丝袜在线| 国产成人av自拍| 欧美午夜一区二区| 欧美韩国日本一区| 日韩国产欧美视频| 成人av免费在线| 在线不卡中文字幕| 亚洲女子a中天字幕| 精东粉嫩av免费一区二区三区| 色综合av在线| 久久婷婷综合激情| 日韩电影免费一区| 91国产福利在线| 国产日韩精品一区二区三区 | www.日本不卡| 欧美tk丨vk视频| 亚洲色图欧美激情| 久久激情综合网| 在线观看日韩av先锋影音电影院| 2017欧美狠狠色| 日本午夜精品视频在线观看| 色狠狠av一区二区三区| 国产日产欧美一区二区三区| 视频在线观看国产精品| 一本大道综合伊人精品热热| 欧美高清在线一区| 久久99精品久久久久久动态图| 日本高清视频一区二区| 欧美国产1区2区| 国产在线精品一区在线观看麻豆| 欧美午夜不卡在线观看免费| 国产精品国产自产拍高清av王其| 成人app软件下载大全免费| 精品国产伦理网| 免费一级欧美片在线观看| 欧美日韩一区不卡| 一区二区三区欧美在线观看| 成人a免费在线看| 国产欧美日韩在线看| 精品中文av资源站在线观看| 欧美猛男gaygay网站| 一区二区欧美精品| 91久久精品午夜一区二区| 中文字幕一区二区三| 波多野洁衣一区| 1024国产精品| 91丝袜美腿高跟国产极品老师| 国产精品无码永久免费888| 国产69精品久久久久777| 国产色婷婷亚洲99精品小说| 国产精品影音先锋| 国产日韩欧美亚洲| 成人ar影院免费观看视频| 国产精品久久久久7777按摩| 成人三级伦理片| 亚洲日本乱码在线观看| 色偷偷久久人人79超碰人人澡| 中文字幕一区二区三区乱码在线| 成人a区在线观看| 一区二区在线观看免费| 欧美视频在线一区| 舔着乳尖日韩一区| 日韩欧美国产三级| 国产美女精品在线| 国产欧美一二三区| 91在线porny国产在线看| 亚洲午夜成aⅴ人片| 欧美疯狂做受xxxx富婆| 日本欧美一区二区| 久久久av毛片精品| 91在线你懂得| 午夜国产精品一区| 精品国产乱码久久久久久浪潮| 国产成人免费视频| 一区二区三区毛片| 欧美一区二区大片| 国产精品自拍毛片| 一区二区三区在线高清| 91精品免费在线观看| 国产精品123| 亚洲欧美福利一区二区| 91精品国产综合久久婷婷香蕉| 国产综合成人久久大片91| 国产精品每日更新| 欧美日韩大陆在线| 国产一区二区在线免费观看| 亚洲欧美在线高清| 日韩一区二区高清| 成人av网站免费| 日韩成人精品在线观看| 国产日韩av一区| 欧美精选一区二区| 国产91丝袜在线播放| 亚洲国产综合在线| 国产亚洲va综合人人澡精品| 色噜噜狠狠成人网p站| 精品一区二区三区在线视频| 日韩美女精品在线| 日韩精品中文字幕在线一区| 91视频免费观看| 狠狠色伊人亚洲综合成人| 亚洲色图欧美偷拍| 精品播放一区二区| 在线观看www91| 高清shemale亚洲人妖| 日韩精品国产精品| 亚洲人亚洲人成电影网站色| 欧美一区二区三区精品| 91在线观看污| 国产激情一区二区三区四区| 亚洲国产一区二区三区青草影视| 久久久精品2019中文字幕之3| 欧美性一级生活| www.日韩精品| 国产高清精品网站| 青娱乐精品视频| 亚洲一级二级在线|