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

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

?? wonderland.java

?? 一個小公司要求給寫的很簡單的任務管理系統。
?? JAVA
字號:
/* * @(#)Wonderland.java	1.15 05/11/17 *  * Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. *  * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: *  * -Redistribution of source code must retain the above copyright notice, this *  list of conditions and the following disclaimer. *  * -Redistribution in binary form must reproduce the above copyright notice,  *  this list of conditions and the following disclaimer in the documentation *  and/or other materials provided with the distribution. *  * Neither the name of Sun Microsystems, Inc. or the names of contributors may  * be used to endorse or promote products derived from this software without  * specific prior written permission. *  * This software is provided "AS IS," without a warranty of any kind. ALL  * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MIDROSYSTEMS, INC. ("SUN") * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST  * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,  * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY  * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,  * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. *  * You acknowledge that this software is not designed, licensed or intended * for use in the design, construction, operation or maintenance of any * nuclear facility. *//* * @(#)Wonderland.java	1.15 05/11/17 */import java.util.Locale;import java.util.MissingResourceException;import java.util.ResourceBundle;import java.net.URL;import java.util.Hashtable;import java.awt.Color;import javax.swing.*;import javax.swing.text.*;/** * hack to load attributed content */public class Wonderland {  Wonderland(DefaultStyledDocument doc, StyleContext styles) {    this.doc = doc;    this.styles = styles;    runAttr = new Hashtable();  }  void loadDocument() {    createStyles();    for (int i = 0; i < data.length; i++) {      Paragraph p = data[i];      addParagraph(p);    }  }  void addParagraph(Paragraph p) {    try {      Style s = null;      for (int i = 0; i < p.data.length; i++) {	Run run = p.data[i];	s = (Style) runAttr.get(run.attr);	doc.insertString(doc.getLength(), run.content, s);      }      // set logical style      Style ls = styles.getStyle(p.logical);      doc.setLogicalStyle(doc.getLength() - 1, ls);      doc.insertString(doc.getLength(), "\n", null);    } catch (BadLocationException e) {      System.err.println("Internal error: " + e);    }  }  void createStyles() {    // no attributes defined    Style s = styles.addStyle(null, null);    runAttr.put("none", s);    s = styles.addStyle(null, null);    StyleConstants.setItalic(s, true);    StyleConstants.setForeground(s, new Color(153,153,102));    runAttr.put("cquote", s); // catepillar quote    s = styles.addStyle(null, null);    StyleConstants.setItalic(s, true);    StyleConstants.setForeground(s, new Color(51,102,153));    runAttr.put("aquote", s); // alice quote    try {            ResourceBundle resources = ResourceBundle.getBundle("resources.Stylepad", 								Locale.getDefault());	    s = styles.addStyle(null, null);	    Icon alice =                 new ImageIcon(getClass().                              getResource(resources.getString("aliceGif")));	    StyleConstants.setIcon(s, alice);	    runAttr.put("alice", s); // alice	    s = styles.addStyle(null, null);	    Icon caterpillar =                 new ImageIcon(getClass().                              getResource(resources.getString("caterpillarGif")));	    StyleConstants.setIcon(s, caterpillar);	    runAttr.put("caterpillar", s); // caterpillar	    s = styles.addStyle(null, null);	    Icon hatter =                 new ImageIcon(getClass().                              getResource(resources.getString("hatterGif")));	    StyleConstants.setIcon(s, hatter);	    runAttr.put("hatter", s); // hatter    } catch (MissingResourceException mre) {      // can't display image    }    Style def = styles.getStyle(StyleContext.DEFAULT_STYLE);    Style heading = styles.addStyle("heading", def);    StyleConstants.setFontFamily(heading, "SansSerif");    StyleConstants.setBold(heading, true);    StyleConstants.setAlignment(heading, StyleConstants.ALIGN_CENTER);    StyleConstants.setSpaceAbove(heading, 10);    StyleConstants.setSpaceBelow(heading, 10);    StyleConstants.setFontSize(heading, 18);    // Title    Style sty = styles.addStyle("title", heading);    StyleConstants.setFontSize(sty, 32);    // edition    sty = styles.addStyle("edition", heading);    StyleConstants.setFontSize(sty, 16);    // author    sty = styles.addStyle("author", heading);    StyleConstants.setItalic(sty, true);    StyleConstants.setSpaceBelow(sty, 25);    // subtitle    sty = styles.addStyle("subtitle", heading);    StyleConstants.setSpaceBelow(sty, 35);    // normal    sty = styles.addStyle("normal", def);    StyleConstants.setLeftIndent(sty, 10);    StyleConstants.setRightIndent(sty, 10);    StyleConstants.setFontFamily(sty, "SansSerif");    StyleConstants.setFontSize(sty, 14);    StyleConstants.setSpaceAbove(sty, 4);    StyleConstants.setSpaceBelow(sty, 4);  }  DefaultStyledDocument doc;  StyleContext styles;  Hashtable runAttr;  static class Paragraph {    Paragraph(String logical, Run[] data) {      this.logical = logical;      this.data = data;    }    String logical;    Run[] data;  }  static class Run {    Run(String attr, String content) {      this.attr = attr;      this.content = content;    }    String attr;    String content;  }  Paragraph[] data = new Paragraph[] {    new Paragraph("title", new Run[] {      new Run("none", "ALICE'S ADVENTURES IN WONDERLAND")	}),    new Paragraph("author", new Run[] {      new Run("none", "Lewis Carroll")	}),    new Paragraph("heading", new Run[] {      new Run("alice", " ")	}),    new Paragraph("edition", new Run[] {      new Run("none", "THE MILLENNIUM FULCRUM EDITION 3.0")	}),    new Paragraph("heading", new Run[] {      new Run("none", "CHAPTER V")	}),    new Paragraph("subtitle", new Run[] {      new Run("none", "Advice from a Caterpillar")	}),    new Paragraph("normal", new Run[] {      new Run("none", " "),	}),    new Paragraph("normal", new Run[] {      new Run("none", "The Caterpillar and Alice looked at each other for some time in silence:  at last the Caterpillar took the hookah out of its mouth, and addressed her in a languid, sleepy voice.")	}),    new Paragraph("normal", new Run[] {      new Run("cquote", "Who are YOU?  "),      new Run("none", "said the Caterpillar.")	}),    new Paragraph("normal", new Run[] {      new Run("none", "This was not an encouraging opening for a conversation.  Alice replied, rather shyly, "),      new Run("aquote", "I--I hardly know, sir, just at present--at least I know who I WAS when I got up this morning, but I think I must have been changed several times since then. "),	}),    new Paragraph("heading", new Run[] {      new Run("caterpillar", " ")	}),    new Paragraph("normal", new Run[] {      new Run("cquote", "What do you mean by that? "),      new Run("none", " said the Caterpillar sternly.  "),      new Run("cquote", "Explain yourself!"),	}),    new Paragraph("normal", new Run[] {      new Run("aquote", "I can't explain MYSELF, I'm afraid, sir"),      new Run("none", " said Alice, "),      new Run("aquote", "because I'm not myself, you see."),	}),    new Paragraph("normal", new Run[] {      new Run("cquote", "I don't see,"),      new Run("none", " said the Caterpillar."),	}),    new Paragraph("normal", new Run[] {      new Run("aquote", "I'm afraid I can't put it more clearly,  "),      new Run("none", "Alice replied very politely, "),      new Run("aquote", "for I can't understand it myself to begin with; and being so many different sizes in a day is very confusing."),	}),    new Paragraph("normal", new Run[] {      new Run("cquote", "It isn't,  "),      new Run("none", "said the Caterpillar.")	}),    new Paragraph("normal", new Run[] {      new Run("aquote", "Well, perhaps you haven't found it so yet,"),      new Run("none", " said Alice; "),      new Run("aquote", "but when you have to turn into a chrysalis--you will some day, you know--and then after that into a butterfly, I should think you'll feel it a little queer, won't you?")	}),    new Paragraph("normal", new Run[] {      new Run("cquote", "Not a bit, "),      new Run("none", "said the Caterpillar.")	}),    new Paragraph("normal", new Run[] {      new Run("aquote", "Well, perhaps your feelings may be different,"),      new Run("none", " said Alice; "),      new Run("aquote", "all I know is, it would feel very queer to ME."),	}),    new Paragraph("normal", new Run[] {      new Run("cquote", "You!"),      new Run("none", " said the Caterpillar contemptuously.  "),      new Run("cquote", "Who are YOU?"),	}),    new Paragraph("normal", new Run[] {      new Run("normal", "Which brought them back again to the beginning of the conversation.  Alice felt a little irritated at the Caterpillar's making such VERY short remarks, and she drew herself up and said, very gravely, "),      new Run("aquote", "I think, you ought to tell me who YOU are, first."),	}),    new Paragraph("normal", new Run[] {      new Run("cquote", "Why?  "),      new Run("none", "said the Caterpillar."),	}),    new Paragraph("heading", new Run[] {      new Run("hatter", " ")	}),    new Paragraph("normal", new Run[] {      new Run("none", " "),	}),    new Paragraph("normal", new Run[] {      new Run("none", " "),	}),    new Paragraph("normal", new Run[] {      new Run("none", " "),	})  };}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看成人免费视频| 成人一区二区视频| 亚洲欧美另类图片小说| 国产精品美女一区二区三区| 久久精品一二三| 国产日韩欧美精品电影三级在线| 久久综合999| 欧美韩日一区二区三区| 日韩中文字幕一区二区三区| 五月婷婷另类国产| 麻豆精品一二三| 精品一区二区在线观看| 国产精一品亚洲二区在线视频| 国内精品国产成人国产三级粉色| 国产精品小仙女| 91网页版在线| 5858s免费视频成人| 日韩精品中文字幕在线一区| 国产午夜精品一区二区三区嫩草 | 亚洲精品日日夜夜| 一区二区三区欧美日| 婷婷六月综合亚洲| 国产一区二区三区在线观看免费视频 | 高清不卡在线观看| 欧美在线视频不卡| 精品国内二区三区| 国产精品免费视频一区| 亚洲最大成人综合| 国产在线国偷精品产拍免费yy| 成人在线一区二区三区| 欧美色中文字幕| 久久综合999| 亚洲国产精品久久一线不卡| 国产曰批免费观看久久久| 91亚洲精品一区二区乱码| 7777精品伊人久久久大香线蕉经典版下载 | 久久综合久久综合久久| 亚洲欧美日韩久久| 久久成人麻豆午夜电影| 91天堂素人约啪| 精品久久99ma| 亚洲国产精品一区二区www在线 | 99精品视频中文字幕| 91麻豆精品国产91久久久久久久久 | 亚洲欧洲另类国产综合| 奇米精品一区二区三区四区| 99久久婷婷国产| 精品国产乱码久久久久久夜甘婷婷 | 成人99免费视频| 日韩限制级电影在线观看| 日韩理论片中文av| 国产99久久久国产精品潘金| 欧洲精品视频在线观看| 国产精品午夜在线观看| 久久精品国产77777蜜臀| 99精品国产热久久91蜜凸| 亚洲麻豆国产自偷在线| 国精产品一区一区三区mba视频| 色屁屁一区二区| 亚洲欧美在线高清| 国产盗摄一区二区三区| 日韩欧美国产精品| 日韩和欧美的一区| 欧美群妇大交群的观看方式| 最好看的中文字幕久久| 国产成人啪免费观看软件| 日韩免费看的电影| 蜜臀av性久久久久蜜臀av麻豆| 91国偷自产一区二区使用方法| 国产精品视频yy9299一区| 国产乱码精品1区2区3区| 日韩一区二区三区视频在线| 亚洲一区在线视频| 欧美亚洲国产一区二区三区va| 亚洲日本一区二区三区| 91黄视频在线观看| 亚洲a一区二区| 7777精品伊人久久久大香线蕉经典版下载 | 91一区二区在线观看| 国产精品二区一区二区aⅴ污介绍| 国产一区二区精品久久| www一区二区| 国产精品综合av一区二区国产馆| 精品久久久久久久久久久久久久久| 免费成人在线播放| 26uuu亚洲综合色| 处破女av一区二区| 亚洲男人的天堂在线观看| 欧美综合天天夜夜久久| 日本女人一区二区三区| 精品成人佐山爱一区二区| 国产91富婆露脸刺激对白| 亚洲天堂2014| 欧美日韩国产高清一区二区三区 | 国产不卡视频在线观看| 中文无字幕一区二区三区 | 精品一区二区三区免费播放| 国产欧美综合色| 91福利资源站| 麻豆精品视频在线观看免费| 国产亚洲一本大道中文在线| av欧美精品.com| 亚洲国产精品一区二区www | 在线视频观看一区| 日韩精品电影一区亚洲| 26uuu欧美日本| 日本乱码高清不卡字幕| 久久99精品国产麻豆婷婷洗澡| 国产精品污www在线观看| 欧美日韩国产成人在线免费| 韩国理伦片一区二区三区在线播放| 国产精品久久久久7777按摩| 欧美久久高跟鞋激| 成人av影院在线| 久久精品国产色蜜蜜麻豆| 日韩一区欧美小说| 精品少妇一区二区三区在线视频| 成人丝袜视频网| 美女精品一区二区| 一区二区三区中文免费| 久久婷婷色综合| 欧美日韩美少妇| kk眼镜猥琐国模调教系列一区二区| 亚洲成人av在线电影| 亚洲欧美综合色| 久久精品欧美一区二区三区不卡| 在线观看一区不卡| 99久久99久久免费精品蜜臀| 另类小说欧美激情| 天涯成人国产亚洲精品一区av| 亚洲欧美中日韩| 国产精品日产欧美久久久久| 亚洲综合自拍偷拍| 自拍偷在线精品自拍偷无码专区 | 亚洲成国产人片在线观看| 国产精品系列在线| 日本一区二区三区四区| 日韩丝袜美女视频| 欧美夫妻性生活| 欧美日本乱大交xxxxx| 欧洲视频一区二区| 91成人在线精品| 91福利在线观看| 91污片在线观看| 99re热视频这里只精品| 风间由美一区二区av101| 国产乱人伦偷精品视频免下载 | 日产精品久久久久久久性色| 亚洲精品视频一区二区| 国产精品久久久久一区二区三区共| 久久综合国产精品| 国产欧美一区二区精品婷婷| 欧美成人r级一区二区三区| 日韩免费视频一区| 国产亚洲欧美日韩日本| 国产女人18毛片水真多成人如厕| 国产视频亚洲色图| 国产精品视频观看| 亚洲欧美另类小说视频| 亚洲中国最大av网站| 图片区小说区国产精品视频| 水野朝阳av一区二区三区| 日韩**一区毛片| 狠狠v欧美v日韩v亚洲ⅴ| 国产电影一区二区三区| av亚洲精华国产精华精华| 欧美性xxxxx极品少妇| 欧美久久一区二区| 欧美岛国在线观看| 国产精品你懂的| 一区二区在线看| 日韩精品乱码免费| 国产麻豆精品视频| 99精品国产91久久久久久| 欧美四级电影在线观看| 欧美电视剧免费全集观看| 国产精品三级av| 午夜精品久久久久久久99水蜜桃 | 粉嫩av一区二区三区| 久久青草国产手机看片福利盒子 | 色哦色哦哦色天天综合| 91精品视频网| 欧美激情一区三区| 亚洲成人av免费| 成人性视频网站| 777久久久精品| 国产精品青草久久| 五月综合激情婷婷六月色窝| 国产美女久久久久| 色综合久久久久综合99| 欧美成人女星排行榜| 亚洲欧洲中文日韩久久av乱码| 日本不卡不码高清免费观看| 丁香啪啪综合成人亚洲小说 | 久久综合成人精品亚洲另类欧美 | 成人精品国产一区二区4080| 欧美日韩国产色站一区二区三区| 国产亚洲一区二区三区四区| 丝瓜av网站精品一区二区| av电影在线观看一区|