锘??xml version="1.0" encoding="utf-8" standalone="yes"?>粉嫩一区二区三区在线观看,国产资源在线看,国产精品影院在线http://www.aygfsteel.com/ejber/archive/2005/12/19/24566.html椋庨椋庨Mon, 19 Dec 2005 01:45:00 GMThttp://www.aygfsteel.com/ejber/archive/2005/12/19/24566.htmlhttp://www.aygfsteel.com/ejber/comments/24566.htmlhttp://www.aygfsteel.com/ejber/archive/2005/12/19/24566.html#Feedback2http://www.aygfsteel.com/ejber/comments/commentRss/24566.htmlhttp://www.aygfsteel.com/ejber/services/trackbacks/24566.html
]]>- Java Application鍚姩鐢婚潰鐨勫埗浣?/title>http://www.aygfsteel.com/ejber/archive/2005/12/19/24548.html椋庨椋庨Mon, 19 Dec 2005 00:51:00 GMThttp://www.aygfsteel.com/ejber/archive/2005/12/19/24548.htmlhttp://www.aygfsteel.com/ejber/comments/24548.htmlhttp://www.aygfsteel.com/ejber/archive/2005/12/19/24548.html#Feedback1http://www.aygfsteel.com/ejber/comments/commentRss/24548.htmlhttp://www.aygfsteel.com/ejber/services/trackbacks/24548.html鐜拌薄錛?BR>
銆銆JBuilder鍚姩鏃舵湁涓涓惎鍔ㄧ敾闈紝鍦↗builder鎵鏈夌殑鍒濆鍖栧伐浣滈兘瀹屾垚涔嬪悗錛屽惎鍔ㄧ敾闈㈡秷澶憋紝緇ц孞Builder鍙互寮濮嬩嬌鐢ㄣ?BR>
銆銆瑙e喅鏂規錛?BR>
銆銆璇ユ柟妗堝熀浜庢垜鎵鍋氳繃鐨勪竴涓」鐩?BR>
銆銆1銆佹柊寤轟竴涓惎鍔ㄧ敾闈indow綾?BR>
銆銆java.awt.Window windowSplash;
銆銆2銆佽皟鐢╬repareSplash()鍑芥暟錛屽垵濮嬪寲鍚姩鐣岄潰
銆銆private void prepareSplash錛堬級
銆{
銆銆銆銆Toolkit toolkit = Toolkit.getDefaultToolkit錛堬級錛?
銆銆銆銆windowSplash = new Window錛?this 錛夛紱
銆銆銆銆Image image = toolkit.getImage錛?"images" + File.separator + "splash.gif" 錛夛紱
銆銆銆銆ImageCanvas canvas = new ImageCanvas錛?image 錛夛紱
銆銆銆銆windowSplash.add錛?canvas, "Center" 錛夛紱
銆銆銆銆Dimension scmSize = toolkit.getScreenSize錛堬級錛?
銆銆銆銆int imgWidth = image.getWidth錛?this 錛夛紱
銆銆銆銆int imgHeight = image.getHeight錛?this 錛夛紱
銆銆銆銆windowSplash.setLocation錛?scmSize.width/2 - 錛坕mgWidth/2錛? scmSize.height/2 - 錛坕mgHeight/2錛?錛夛紱
銆銆銆windowSplash.setSize錛?imgWidth, imgHeight 錛夛紱
銆銆}
銆銆3銆佸湪Application鐨凧Frame綾伙紙涓葷晫闈級涓皟鐢╯tartSplash錛堬級錛屾樉紺哄惎鍔ㄧ晫闈紝鐒跺悗鍒濊瘯鍖朖Frame鐨勫悇涓彲瑙嗗寲緇勪歡錛屽垵濮嬪寲鍚庡彴鏁版嵁搴撶瓑錛堝鏁版嵁
搴撶殑榪炴帴錛?BR>
銆銆private void startSplash錛堬級
銆銆{
銆銆銆銆windowSplash.setVisible錛?true 錛夛紱
銆銆銆windowSplash.toFront錛堬級錛?BR>銆銆}
銆銆4銆佸湪鎵鏈夌殑鍒濆鍖栧伐浣滃畬鎴愪箣鍚庯紝璋冪敤stopSplash錛堬級鍑芥暟錛屽仠姝㈡樉紺哄惎鍔ㄧ敾闈?BR>
銆銆private void stopSplash錛堬級
{
銆銆銆windowSplash.dispose錛堬級錛?
銆}

]]> - 璁$畻涓嫳鏂囧悎騫剁殑瀛楃涓茬殑闀垮害http://www.aygfsteel.com/ejber/archive/2005/12/19/24547.html椋庨椋庨Mon, 19 Dec 2005 00:49:00 GMThttp://www.aygfsteel.com/ejber/archive/2005/12/19/24547.htmlhttp://www.aygfsteel.com/ejber/comments/24547.htmlhttp://www.aygfsteel.com/ejber/archive/2005/12/19/24547.html#Feedback0http://www.aygfsteel.com/ejber/comments/commentRss/24547.htmlhttp://www.aygfsteel.com/ejber/services/trackbacks/24547.htmlimport java.io.*;
public class StringTest
{
public static void main(String[] args)
{
String aString = "榪欐槸涓涓祴璇曚覆錛孴his is a test string.";
String anotherString = null;
try {
anotherString = new String(aString.getBytes("GBK"), "ISO8859_1");
}
catch (UnsupportedEncodingException ex) {
}
System.out.println(aString.length() + "," + anotherString.length());
}
}

]]>
主站蜘蛛池模板:
泊头市|
大关县|
微博|
闻喜县|
大姚县|
民丰县|
安西县|
东乡|
西青区|
苗栗县|
榕江县|
汉川市|
淅川县|
喀喇|
都安|
错那县|
蒙城县|
台东市|
三亚市|
巴里|
清徐县|
新野县|
永登县|
西乌珠穆沁旗|
方山县|
阜南县|
中江县|
马公市|
桃园县|
保定市|
连江县|
长兴县|
龙南县|
睢宁县|
汶上县|
乌拉特前旗|
古田县|
巴里|
宿迁市|
辽宁省|
长阳|