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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? simplecutandpaste.java

?? Examples From Java Examples in a Nutshell, 2nd Edition 書(shū)中的源碼
?? JAVA
字號(hào):
/* * Copyright (c) 2000 David Flanagan.  All rights reserved. * This code is from the book Java Examples in a Nutshell, 2nd Edition. * It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or implied. * You may study, use, and modify it for any non-commercial purpose. * You may distribute it non-commercially as long as you retain this notice. * For a commercial use license, or to purchase the book (recommended), * visit http://www.davidflanagan.com/javaexamples2. */package com.davidflanagan.examples.datatransfer;import java.awt.*;import java.awt.event.*;import java.awt.datatransfer.*;/** * This program demonstrates how to add simple copy-and-paste capabilities * to an application. **/public class SimpleCutAndPaste extends Frame implements ClipboardOwner{    /** The main method creates a frame and pops it up. */    public static void main(String[] args) {	Frame f = new SimpleCutAndPaste();	f.addWindowListener(new WindowAdapter() { 		public void windowClosing(WindowEvent e) { System.exit(0); }	    });	f.pack();	f.setVisible(true);    }        /** The text field that holds the text that is cut or pasted */    TextField field;        /**     * The constructor builds a very simple test GUI, and registers this object     * as the ActionListener for the buttons      **/    public SimpleCutAndPaste() {	super("SimpleCutAndPaste");  // Window title	this.setFont(new Font("SansSerif", Font.PLAIN, 18)); // Use a big font		// Set up the Cut button	Button copy = new Button("Copy");                       	copy.addActionListener(new ActionListener() {		public void actionPerformed(ActionEvent e) { copy(); }	    });	this.add(copy, "West");		// Set up the Paste button	Button paste = new Button("Paste");	paste.addActionListener(new ActionListener() {		public void actionPerformed(ActionEvent e) { paste(); }	    });	this.add(paste, "East");		// Set up the text field that they both operate on	field = new TextField();	this.add(field, "North");    }        /**     * This method takes the current contents of the text field, creates a     * StringSelection object to represent that string, and puts the      * StringSelection onto the clipboard     **/    public void copy() {	// Get the currently displayed value	String s = field.getText();                  		// Create a StringSelection object to represent the text.	// StringSelection is a pre-defined class that implements	// Transferable and ClipboardOwner for us. 	StringSelection ss = new StringSelection(s); 		// Now set the StringSelection object as the contents of the clipboard	// Also specify that we're the clipboard owner	this.getToolkit().getSystemClipboard().setContents(ss, this);	// Highlight the text to indicate it is on the clipboard.	field.selectAll();    }        /**     * Get the contents of the clipboard, and, if we understand the type,     * display the contents.  This method understands strings and file lists.     **/    public void paste() {	// Get the clipboard	Clipboard c = this.getToolkit().getSystemClipboard();		// Get the contents of the clipboard, as a Transferable object	Transferable t = c.getContents(this);	// Find out what kind of data is on the clipboard	try { 	    if (t.isDataFlavorSupported(DataFlavor.stringFlavor)) {		// If it is a string, then get and display the string		String s = (String) t.getTransferData(DataFlavor.stringFlavor);		field.setText(s); 			    }	    else if (t.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {		// If it is a list of File objects, get the list and display		// the name of the first file on the list		java.util.List files = (java.util.List)		    t.getTransferData(DataFlavor.javaFileListFlavor);		java.io.File file = (java.io.File)files.get(0);		field.setText(file.getName());	    }	}	// If anything goes wrong with the transfer, just beep and do nothing.	catch (Exception e) { this.getToolkit().beep(); }    }    /**     * This method implements the ClipboardOwner interface.  It is called when     * something else is placed on the clipboard.     **/    public void lostOwnership(Clipboard c, Transferable t) {	// Un-highlight the text field, since we don't "own" the clipboard	// anymore, and the text is no longer available to be pasted.	field.select(0,0);    }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲精品一区二区乱码| 欧美日韩一区二区电影| 成人午夜又粗又硬又大| 91精品福利在线| 精品国产三级电影在线观看| 国产精品久久99| 捆绑变态av一区二区三区| 日本丰满少妇一区二区三区| 亚洲美女淫视频| 国产一区二区精品久久99| 精品视频免费在线| 奇米色777欧美一区二区| 欧美主播一区二区三区| 国产精品高潮久久久久无| 91在线国产福利| 国产精品亲子伦对白| 久久99精品久久久| 日韩免费一区二区| 天天影视网天天综合色在线播放| 99久久99久久精品免费观看| 亚洲综合一二区| 91色综合久久久久婷婷| 性做久久久久久| 欧美亚洲精品一区| 亚洲乱码国产乱码精品精小说 | 日韩主播视频在线| 欧美人xxxx| 亚洲成a人v欧美综合天堂 | 久久99久久精品| 国产精品久久久久aaaa樱花| 欧美专区亚洲专区| 国产精品一区二区三区乱码| 久久精品在这里| 懂色av一区二区三区免费看| 国产亚洲人成网站| 欧美日韩精品欧美日韩精品一 | 欧美色偷偷大香| 国产在线精品免费av| 亚洲精品中文字幕乱码三区| 欧美一级精品大片| 亚洲成av人片在线| 国产日韩欧美综合在线| 国产999精品久久久久久绿帽| 亚洲午夜久久久久久久久电影网| 欧美午夜理伦三级在线观看| 久久99国产精品麻豆| 亚洲一区二区三区视频在线| 日本一区二区三区高清不卡| 91精品国产综合久久精品app| 亚洲九九爱视频| 国产亚洲精品7777| 7777精品久久久大香线蕉| 99久久国产综合精品女不卡| 久久精品国产亚洲5555| 亚洲国产一区二区三区青草影视| 国产免费成人在线视频| 日韩一区二区影院| 欧美在线不卡一区| 91捆绑美女网站| 懂色av一区二区三区免费观看| 久久精品国产秦先生| 丝袜脚交一区二区| 午夜视频在线观看一区| 一区二区在线看| 最近日韩中文字幕| 欧美日韩黄视频| 色综合久久久久| 另类小说欧美激情| 丝袜亚洲精品中文字幕一区| 尤物在线观看一区| 亚洲精品ww久久久久久p站| 中文字幕日韩欧美一区二区三区| 欧美精品九九99久久| 国产福利一区二区三区在线视频| 亚洲素人一区二区| 成人欧美一区二区三区1314| 国产欧美日韩在线| 中文一区二区在线观看| 欧美日韩激情在线| 欧美人牲a欧美精品| 欧美精品久久99| 91精品国产麻豆国产自产在线 | 一区二区三区在线观看国产| 欧美精品一区二区三区蜜臀 | 欧美男人的天堂一二区| 欧美老肥妇做.爰bbww视频| 5月丁香婷婷综合| 日韩美女一区二区三区| 精品av综合导航| 国产日韩精品久久久| 国产精品国产三级国产普通话蜜臀| 中文成人综合网| 一区二区三区免费看视频| 午夜电影久久久| 蜜臀av性久久久久蜜臀aⅴ流畅 | 91精品国模一区二区三区| 欧美精品丝袜中出| 日韩欧美国产精品一区| 久久久久99精品国产片| 日韩三级免费观看| 久久亚洲一区二区三区四区| 欧美丰满高潮xxxx喷水动漫| 日韩一级精品视频在线观看| 精品国产一二三| 国产精品成人在线观看| 亚洲最大成人综合| 久久超级碰视频| av电影在线观看一区| jlzzjlzz国产精品久久| 在线观看精品一区| 精品国产百合女同互慰| 国产精品久久看| 性久久久久久久| 国产麻豆一精品一av一免费| 色综合天天综合在线视频| av一本久道久久综合久久鬼色| 91国产视频在线观看| 日韩欧美精品在线视频| ●精品国产综合乱码久久久久| 亚洲自拍另类综合| 国产一区美女在线| 色吊一区二区三区| 精品理论电影在线| 久久无码av三级| 一区二区三区日韩精品| 国产真实乱偷精品视频免| 国模套图日韩精品一区二区| 成人三级伦理片| 91精品国产乱| 亚洲乱码中文字幕综合| 极品少妇xxxx精品少妇偷拍| 色婷婷久久一区二区三区麻豆| 日韩视频免费直播| 亚洲综合在线第一页| 床上的激情91.| 欧美v亚洲v综合ⅴ国产v| 亚洲最新视频在线观看| 成人成人成人在线视频| 色婷婷综合久久久中文一区二区| 欧美刺激脚交jootjob| 亚洲国产精品久久久久秋霞影院| 成人免费视频视频| 26uuu国产日韩综合| 午夜久久久久久| 色综合av在线| 国产精品乱码久久久久久| 久久成人精品无人区| 欧美精品777| 亚洲综合久久久久| 色呦呦国产精品| 国产精品九色蝌蚪自拍| 国产高清视频一区| 久久综合国产精品| 日本不卡中文字幕| 成人精品亚洲人成在线| 精品美女在线观看| 免费看欧美美女黄的网站| 欧美日韩一区二区欧美激情| 亚洲美女在线一区| 91色|porny| 日韩美女精品在线| 99免费精品在线| 综合久久久久久| www.在线欧美| 国产精品国产自产拍高清av王其 | 色嗨嗨av一区二区三区| 亚洲精品福利视频网站| 色综合天天天天做夜夜夜夜做| 国产精品传媒在线| 91视频一区二区三区| 亚洲精品国产无天堂网2021| 91亚洲永久精品| 一区二区激情小说| 欧洲精品视频在线观看| 亚洲成人av福利| 日韩一区二区免费在线电影| 日韩av在线免费观看不卡| 91精品国产黑色紧身裤美女| 免费成人小视频| 久久久亚洲精品石原莉奈| 国产精品亚洲一区二区三区妖精 | 亚洲美女免费视频| 在线观看欧美精品| 日韩国产在线一| 欧美tk丨vk视频| 国产成人精品aa毛片| 中文字幕一区二区三区在线观看| 色婷婷av一区二区三区之一色屋| 亚洲国产一区二区视频| 日韩欧美久久久| 成人国产一区二区三区精品| 日韩伦理av电影| 91.麻豆视频| 精品一区精品二区高清| 中文字幕乱码日本亚洲一区二区| 97精品电影院| 免费高清成人在线| 国产精品美女久久久久高潮| 在线观看91视频| 韩日欧美一区二区三区|