锘??xml version="1.0" encoding="utf-8" standalone="yes"?>午夜免费久久久久,h网站视频在线观看,亚洲激情国产http://www.aygfsteel.com/ejber/category/6136.html涓浜涘績寰椾綋浼?.zh-cnFri, 02 Mar 2007 03:21:30 GMTFri, 02 Mar 2007 03:21:30 GMT60- 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#Feedback0http://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());
}
}

]]>
主站蜘蛛池模板:
英吉沙县|
灵山县|
民县|
陆丰市|
闽侯县|
诏安县|
施甸县|
曲周县|
萝北县|
舟山市|
通州市|
平果县|
兴城市|
乌苏市|
靖远县|
余干县|
房产|
年辖:市辖区|
翼城县|
防城港市|
娄烦县|
马尔康县|
怀仁县|
宁海县|
平顺县|
葫芦岛市|
中牟县|
乡城县|
潜江市|
古蔺县|
楚雄市|
西畴县|
探索|
龙井市|
贵德县|
和静县|
措美县|
罗山县|
兴化市|
武乡县|
忻城县|