锘??xml version="1.0" encoding="utf-8" standalone="yes"?>区三区激情福利综合中文字幕在线一区亚洲视频1 ,亚洲午夜精品国产电影在线观看,亚洲狠狠ady亚洲精品大秀http://www.tkk7.com/aoneany/category/34221.html嬈蹭笂澶╁爞錛屽厛涓嬪湴鐙?/description>zh-cnSun, 04 Aug 2013 10:43:06 GMTSun, 04 Aug 2013 10:43:06 GMT60緙栧啓bat鑴氭湰鎵цjarhttp://www.tkk7.com/aoneany/articles/402292.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Fri, 02 Aug 2013 03:08:00 GMThttp://www.tkk7.com/aoneany/articles/402292.htmlhttp://www.tkk7.com/aoneany/comments/402292.htmlhttp://www.tkk7.com/aoneany/articles/402292.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/402292.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/402292.html@echo off       
set PATH=C:\Program Files (x86)\Java\jdk1.6.0_20\bin;C:\WINDOWS;C:\WINDOWS\COMMAND 
set classpath=.;C:\Program Files (x86)\Java\jdk1.6.0_20\lib\tools.jar;C:\Program Files (x86)\Java\jdk1.6.0_20\lib\dt.jar 
java -jar extract_excel.jar
   
pause 


]]>
Java涓璛path瀹炵幇褰撳墠鑺傜偣瀵繪壘鐖惰妭鐐逛笅鐨勫瓧鑺傜偣http://www.tkk7.com/aoneany/articles/399416.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Fri, 17 May 2013 08:05:00 GMThttp://www.tkk7.com/aoneany/articles/399416.htmlhttp://www.tkk7.com/aoneany/comments/399416.htmlhttp://www.tkk7.com/aoneany/articles/399416.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/399416.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/399416.html<section class="imgArea">
    <title="闆ㄤ紴鎸囨暟" target="_blank" href="#"></a>
    <span style="#">
        涓嶅甫浼?br />     </span>
</section> 鍦ㄤ笂闈唬鐮佷腑錛屾垜浠鍏堥渶瑕佹煡鎵懼睘鎬itle=”闆ㄤ紴鎸囨暟"鐨勮妭鐐癸紝Xpath鍐欐硶涓?//a[@title='闆ㄤ紴鎸囨暟']",鐒跺悗闇瑕佹壘鍒扮埗鑺傜偣錛岀埗鑺傜偣鏍囪瘑涓簆arent,Xpath鐨勫啓娉曚負“//a[@title='闆ㄤ紴鎸囨暟']/parent::section”錛宻ection琛ㄧず涓鴻妭鐐逛負Section鑺傜偣銆?br />鐒跺悗闇瑕佹煡瀛愮偣Span涓嬬殑鏂囨湰鍐呭錛屽畬鏁寸殑鍐欐硶涓?#8220;//a[@title='闆ㄤ紴鎸囨暟']/parent::section/span/text()”

]]>
Carrot2瀵規枃绔犺繘琛岃仛綾諱唬鐮佺ず渚?/title><link>http://www.tkk7.com/aoneany/articles/393951.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Tue, 08 Jan 2013 07:08:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/393951.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/393951.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/393951.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/393951.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/393951.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">class</span> ClusteringFlyStoneDocument {<br /><br />    <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">static</span> <span style="color: #0000FF; ">void</span> main(String[] args) {<br />        <br />        <span style="color: #0000FF; ">final</span> Controller controller = ControllerFactory.createCachingPooling(IDocumentSource.<span style="color: #0000FF; ">class</span>);<br />        <span style="color: #008000; ">//</span><span style="color: #008000; ">鍒涘緩闇瑕佸鐞嗙殑灞炴у璞?/span><span style="color: #008000; "><br /></span>        <span style="color: #0000FF; ">final</span> Map<String, Object> attributes = Maps.newHashMap();<br />        <br />        <span style="color: #008000; ">//</span><span style="color: #008000; ">闇瑕佸鐞嗙殑鏂囨。闆嗗悎</span><span style="color: #008000; "><br /></span>        List<Document> documents = SampleDocumentData.DOCUMENTS_DATA_MINING;<br />        <br />        <span style="color: #008000; ">//</span><span style="color: #008000; ">灝嗘枃妗f坊鍔犲埌鑱氱被灞炴т腑</span><span style="color: #008000; "><br /></span>        CommonAttributesDescriptor.attributeBuilder(attributes).documents(documents);<br />        <br />        <span style="color: #008000; ">//</span><span style="color: #008000; ">璁劇疆澶勭悊鐨勮璦錛堬級</span><span style="color: #008000; "><br /></span>        MultilingualClusteringDescriptor.attributeBuilder(attributes).defaultLanguage(LanguageCode.CHINESE_SIMPLIFIED);<br />        <br />        <span style="color: #008000; ">//</span><span style="color: #008000; ">璁劇疆闇瑕佸鐞嗙殑瀵硅薄錛屼互鍙婅仛綾葷殑綆楁硶</span><span style="color: #008000; "><br /></span>        <span style="color: #0000FF; ">final</span> ProcessingResult englishResult = controller.process(attributes, LingoClusteringAlgorithm.<span style="color: #0000FF; ">class</span>);<br />        <br />        <span style="color: #008000; ">//</span><span style="color: #008000; ">鑾峰彇緇撴灉錛屾墦鍗拌仛綾諱富棰樺強鍏寵仈淇℃伅</span><span style="color: #008000; "><br /></span>        <span style="color: #0000FF; ">final</span> List<Cluster> clustersByTopic = englishResult.getClusters();<br />        System.out.println("=======鑱氱被涓婚=====");<br />        <span style="color: #0000FF; ">for</span>(Cluster cluster : clustersByTopic){<br />            System.out.println("銆愪富棰?nbsp;銆? +cluster.getLabel());<br />            List<Document> cDocLst = cluster.getAllDocuments();<br />            <span style="color: #0000FF; ">for</span>(Document doc : cDocLst){<br />                System.out.println("--------" + doc.getTitle());<br />            }<br />        }<br />         <br />        <span style="color: #008000; ">//</span><span style="color: #008000; ">閫氳繃URL榪涜鑱氱被</span><span style="color: #008000; "><br /></span>        <span style="color: #0000FF; ">final</span> ProcessingResult byDomainClusters = controller.process(documents, <span style="color: #0000FF; ">null</span>,ByUrlClusteringAlgorithm.<span style="color: #0000FF; ">class</span>);<br />        <span style="color: #0000FF; ">final</span> List<Cluster> clustersByDomain = byDomainClusters.getClusters();<br />        System.out.println("=======URL鑱氱被=======");<br />        <span style="color: #0000FF; ">for</span>(Cluster cluster : clustersByDomain){<br />            System.out.println("銆怳RL銆? +cluster.getLabel());<br />            List<Document> cDocLst = cluster.getAllDocuments();<br />            <span style="color: #0000FF; ">for</span>(Document doc : cDocLst){<br />                System.out.println("----" + doc.getTitle());<br />            }<br />        }<br />    }<br /><br />}</div><img src ="http://www.tkk7.com/aoneany/aggbug/393951.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2013-01-08 15:08 <a href="http://www.tkk7.com/aoneany/articles/393951.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍦‥clipse涓璂ebug紼嬪簭鎵撳嵃鏃ュ織淇℃伅閰嶇疆http://www.tkk7.com/aoneany/articles/388440.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Mon, 24 Sep 2012 07:49:00 GMThttp://www.tkk7.com/aoneany/articles/388440.htmlhttp://www.tkk7.com/aoneany/comments/388440.htmlhttp://www.tkk7.com/aoneany/articles/388440.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/388440.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/388440.html鍦‥clipse Debug Configurations紿楀彛涓紝鍒囨崲鍒癆rguments欏電錛屽湪VM argumenets鏂囨湰妗嗕腑閰嶇疆Log4j閰嶇疆鏂囦歡鐨勫弬鏁幫紝濡備笅錛?/div>
-Dlog4j.configuration=file:/D:/WorkSpace/log4j.properties


]]>
閮ㄧ講鍒皐eblogic鏈嶅姟鍖呭啿紿佺殑瑙e喅鍔炴硶http://www.tkk7.com/aoneany/articles/383962.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Wed, 25 Jul 2012 09:02:00 GMThttp://www.tkk7.com/aoneany/articles/383962.htmlhttp://www.tkk7.com/aoneany/comments/383962.htmlhttp://www.tkk7.com/aoneany/articles/383962.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/383962.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/383962.html褰撳墠寮鍙戜簡涓涓郴緇燂紝鍦╰omcat涓嬭繍琛屾甯革紝浣嗘槸閮ㄧ講鍒皐eblogic涓嬫椂錛屽嵈鍑虹幇浜?/span>java.lang.NoClassDefFoundError: org/aspectj/weaver/tools/PointcutPrimitive寮傚父錛岀粡榪囨煡璇紝鍘熸潵鏄綋鍓嶇郴緇熷拰weblogic綾誨簱涓兘瀛樺湪瀛樼被錛岃秴鎴愬寘鍐茬獊鐨勬儏鍐點傚閬囧埌姝ょ被鎯呭喌錛屽彲浠ラ氳繃鏋勫緩閮ㄧ講ear鍖咃紝鍦╳eblogic-application.xml閫氳繃閰嶇疆浼樺厛鍔犺澆鏈」鐩腑鐨勫寘鏉ュ鐞嗐?br /> 鍦╡ar宸ョ▼涓嬬殑web-info鏂囦歡澶逛笅錛屾坊鍔犱袱涓枃浠禷pplication.xml鍜寃eblogic-application.xml銆?br /> application.xml鏂囦歡鍐呭濡備笅錛?/span><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
        "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
        "http://java.sun.com/dtd/application_1_3.dtd"
>
<application>
    <display-name>kubpwl</display-name>
    <module>
        <web>
            <web-uri>kubpwl.war</web-uri>
            <context-root>kubpwl</context-root>
        </web>
    </module>
</application>
weblogic-application.xml鏂囦歡鍐呭濡備笅錛?span style="font-size: 13px; color: #0000ff; "><?
xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.3/weblogic-application.xsd">
    <!--weblogic-version:10.3.6-->
    <wls:application-param>
        <wls:param-name>webapp.encoding.default</wls:param-name>
        <wls:param-value>UTF-8</wls:param-value>
    </wls:application-param>

    <wls:prefer-application-packages>
        <wls:package-name>org.aspectj.weaver.tools.*</wls:package-name>
        <wls:package-name>javax.jws.*</wls:package-name>
    </wls:prefer-application-packages>
</wls:weblogic-application>

prefer-application-packages 琛ㄧず浼樺厛鍔犺澆欏圭洰lib涓嬬殑鍖呫?img src ="http://www.tkk7.com/aoneany/aggbug/383962.html" width = "1" height = "1" />

]]>
CXF鏈嶅姟闆嗘垚Spring鐨勯厤緗紙璁塊棶璺緞錛?/title><link>http://www.tkk7.com/aoneany/articles/377621.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Tue, 08 May 2012 07:57:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/377621.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/377621.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/377621.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/377621.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/377621.html</trackback:ping><description><![CDATA[鍦╓eb.xml娣誨姞CXFServlet鐨勯厤緗?br /> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000FF; "><</span><span style="color: #800000; ">servlet</span><span style="color: #0000FF; ">></span><br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">servlet-name</span><span style="color: #0000FF; ">></span>CXFServlet<span style="color: #0000FF; "></</span><span style="color: #800000; ">servlet-name</span><span style="color: #0000FF; ">></span><br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">servlet-class</span><span style="color: #0000FF; ">></span><br />             org.apache.cxf.transport.servlet.CXFServlet<br />         <span style="color: #0000FF; "></</span><span style="color: #800000; ">servlet-class</span><span style="color: #0000FF; ">></span><br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">load-on-startup</span><span style="color: #0000FF; ">></span>0<span style="color: #0000FF; "></</span><span style="color: #800000; ">load-on-startup</span><span style="color: #0000FF; ">></span><br />     <span style="color: #0000FF; "></</span><span style="color: #800000; ">servlet</span><span style="color: #0000FF; ">></span><br /> <br />     <span style="color: #0000FF; "><</span><span style="color: #800000; ">servlet-mapping</span><span style="color: #0000FF; ">></span><br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">servlet-name</span><span style="color: #0000FF; ">></span>CXFServlet<span style="color: #0000FF; "></</span><span style="color: #800000; ">servlet-name</span><span style="color: #0000FF; ">></span><br />         <span style="color: #0000FF; "><</span><span style="color: #800000; ">url-pattern</span><span style="color: #0000FF; ">></span>/services/*<span style="color: #0000FF; "></</span><span style="color: #800000; ">url-pattern</span><span style="color: #0000FF; ">></span><br />     <span style="color: #0000FF; "></</span><span style="color: #800000; ">servlet-mapping</span><span style="color: #0000FF; ">></span></div> <span style="font-family: 瀹嬩綋; color: #ac885b; font-size: 12pt; ">鍏朵腑</span><span style="font-family: 'Courier New'; color: #ac885b; font-size: 12pt; ">/services/*</span><span style="font-family: 瀹嬩綋; color: #ac885b; font-size: 12pt; ">琛ㄧず浼氭嫤鎴墍鏈?/span><span style="font-family: 'Courier New'; color: #ac885b; font-size: 12pt; ">services</span><span style="font-family: 瀹嬩綋; color: #ac885b; font-size: 12pt; ">涓嬬殑璁塊棶璺緞銆?/span><span style="font-size:9.0pt;font-family:瀹嬩綋;Courier New";Courier New";Courier New";color:#AC885B;"><br /> </span> <div style="font-size: 13px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; border-image: initial; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; background-color: #eeeeee; "><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000FF; "><</span><span style="color: #800000; ">beans </span><span style="color: #FF0000; ">xmlns</span><span style="color: #0000FF; ">="http://www.springframework.org/schema/beans"</span><span style="color: #FF0000; "><br />     xmlns:xsi</span><span style="color: #0000FF; ">="http://www.w3.org/2001/XMLSchema-instance"</span><span style="color: #FF0000; "><br />     xmlns:jaxws</span><span style="color: #0000FF; ">="http://cxf.apache.org/jaxws"</span><span style="color: #FF0000; "><br />     xmlns:context</span><span style="color: #0000FF; ">="http://www.springframework.org/schema/context"</span><span style="color: #FF0000; "><br />     xsi:schemaLocation</span><span style="color: #0000FF; ">="<br />     http://www.springframework.org/schema/beans <br />     http://www.springframework.org/schema/beans/spring-beans.xsd<br />     http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd<br />     http://www.springframework.org/schema/context   <br />     http://www.springframework.org/schema/context/spring-context-3.0.xsd"</span><span style="color: #0000FF; ">></span><br /> <br />     <span style="color: #0000FF; "><</span><span style="color: #800000; ">import </span><span style="color: #FF0000; ">resource</span><span style="color: #0000FF; ">="classpath:META-INF/cxf/cxf.xml"</span><span style="color: #FF0000; "> </span><span style="color: #0000FF; ">/></span><br />     <span style="color: #0000FF; "><</span><span style="color: #800000; ">import </span><span style="color: #FF0000; ">resource</span><span style="color: #0000FF; ">="classpath:META-INF/cxf/cxf-extension-soap.xml"</span><span style="color: #FF0000; "> </span><span style="color: #0000FF; ">/></span><br />     <span style="color: #0000FF; "><</span><span style="color: #800000; ">import </span><span style="color: #FF0000; ">resource</span><span style="color: #0000FF; ">="classpath:META-INF/cxf/cxf-servlet.xml"</span><span style="color: #FF0000; "> </span><span style="color: #0000FF; ">/><br /> </span><br />     <span style="color: #0000FF; "><</span><span style="color: #800000; ">context:annotation-config</span><span style="color: #0000FF; ">/></span><br />     <span style="color: #0000FF; "><</span><span style="color: #800000; ">context:component-scan </span><span style="color: #FF0000; ">base-package</span><span style="color: #0000FF; ">="com.*.server.resource"</span><span style="color: #0000FF; ">></</span><span style="color: #800000; ">context:component-scan</span><span style="color: #0000FF; ">></span><br /> <br />     <span style="color: #008000; "><!--</span><span style="color: #008000; "> 鐧婚檰鏈嶅姟 </span><span style="color: #008000; ">--></span><br />     <span style="color: #0000FF; "><</span><span style="color: #800000; ">jaxws:endpoint <br />       </span><span style="color: #FF0000; ">id</span><span style="color: #0000FF; ">="LoginService"</span><span style="color: #FF0000; "> <br />       implementor</span><span style="color: #0000FF; ">="com.*.ws.LoginService"</span><span style="color: #FF0000; "> <br />       address</span><span style="color: #0000FF; ">="/ILoginService"</span><span style="color: #FF0000; "> </span><span style="color: #0000FF; ">></span><br />      <span style="color: #0000FF; "></</span><span style="color: #800000; ">jaxws:endpoint</span><span style="color: #0000ff; ">></span><br /> <span style="color: #0000FF; "></</span><span style="color: #800000; ">beans</span><span style="color: #0000FF; ">></span></div> <span style="font-family: 瀹嬩綋; color: red; font-size: 12pt; ">鍒欏綋鍓?/span><span style="font-family: 'Courier New'; color: red; font-size: 12pt; ">CXF</span><span style="font-family: 瀹嬩綋; color: red; font-size: 12pt; ">鐨勮闂礬寰勪負</span><span style="font-family: 'Courier New'; color: red; font-size: 12pt; "> http://url/projectname/services/ILoginService銆?br /></span>鑰屼笉鏄細<span style="font-family: 'Courier New'; font-size: 16px; ">http://url/projectname/ILoginService錛堟敞鎰忔坊鍔爏ervices鐨勮礬寰勶級</span><img src ="http://www.tkk7.com/aoneany/aggbug/377621.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2012-05-08 15:57 <a href="http://www.tkk7.com/aoneany/articles/377621.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>RCP涓郴緇熷唴緗彍鍗曚嬌鐢?/title><link>http://www.tkk7.com/aoneany/articles/371717.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Mon, 12 Mar 2012 05:27:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/371717.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/371717.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/371717.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/371717.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/371717.html</trackback:ping><description><![CDATA[      鍦╡clipse-RCP涓澶氱郴緇熷唴緗彍鍗曪紝鍙互鐩存帴鎷胯繃鏉ヤ嬌鐢紝濡侫ctionFactory.CLOSE錛孉ctionFactory.CLOSE_ALL錛孉ctionFactory.SAVE錛孉ctionFactory.SAVE_AS錛孉ctionFactory.DELETE絳夈?br />鍙互閫氳繃saveAction = ActionFactory.SAVE.create(window);鍒涘緩Action<br />      闇瑕佷嬌鐢?div style="display: inline-block; "></div>ActionFactory.SAVE,<div style="display: inline-block; "></div>ActionFactory.SAVE_ALL鍙樹負鍙敤鐘舵侊紝鍙渶瑕佽緗紪杈戝櫒EditorPart鐨刬sDirty()鏂規硶榪斿洖涓簍rue鍗沖彲銆?br />      ActionFactory.SAVE_AS璁劇疆<div style="display: inline-block; "></div>緙栬緫鍣‥ditorPart鐨刬isSaveAsAllowed()涓簍rue鍗沖彲銆?br />     浣嗘槸<div style="display: inline-block; "></div>ActionFactory.DELETE闇瑕佸叾浠栬鍥炬垨緙栬緫鍣ㄤ腑娉ㄥ唽鍏ㄥ眬鐨勫彞鏌勶紝鍙互閫氳繃濡備笅鏂規硶浣跨敤editorSite.getActionBars().setGlobalActionHandler(<div><div><span style="white-space:pre"> </span>ActionFactory.DELETE.getId(), new CustomAction(););</div></div><img src ="http://www.tkk7.com/aoneany/aggbug/371717.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2012-03-12 13:27 <a href="http://www.tkk7.com/aoneany/articles/371717.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>RCP紼嬪簭涓緗紪杈戝櫒鍏寵仈ActionSet鏄劇ず鑿滃崟鏍忕殑浣嶇疆http://www.tkk7.com/aoneany/articles/371412.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Wed, 07 Mar 2012 08:13:00 GMThttp://www.tkk7.com/aoneany/articles/371412.htmlhttp://www.tkk7.com/aoneany/comments/371412.htmlhttp://www.tkk7.com/aoneany/articles/371412.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/371412.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/371412.htmlpath=edit灞炴э紝鎵嶈兘灝咵ditorPart鍏寵仈鐨勮彍鍗曟樉紺虹殑涓棿銆?img src ="http://www.tkk7.com/aoneany/aggbug/371412.html" width = "1" height = "1" />

]]>
鍦–XF涓浣曚紶閫掓娊璞″璞?/title><link>http://www.tkk7.com/aoneany/articles/371010.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Wed, 29 Feb 2012 08:29:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/371010.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/371010.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/371010.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/371010.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/371010.html</trackback:ping><description><![CDATA[鍏堝畾涓涓傞厤鍣ㄧ被錛岀戶鎵縓mlAdapter,鍙互灝嗘娊璞$被杞崲涓哄彲浠ヨ瘑鍒殑浼犺緭瀵硅薄<br /> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> UserTOAdapter </span><span style="color: #0000FF; ">extends</span><span style="color: #000000; "> XmlAdapter</span><span style="color: #000000; "><</span><span style="color: #000000; ">TO, User</span><span style="color: #000000; ">></span><span style="color: #000000; "> {<br /> <br />     @Override<br />     </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> User unmarshal(TO to) </span><span style="color: #0000FF; ">throws</span><span style="color: #000000; "> Exception {<br />         </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> (User)to;<br />     }<br /> <br />     @Override<br />     </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> TO marshal(User user) </span><span style="color: #0000FF; ">throws</span><span style="color: #000000; "> Exception {<br />         </span><span style="color: #0000FF; ">return</span><span style="color: #000000; "> (TO)user;<br />     }<br /> <br /> }<br /> </span></div> <div>鍦╓ebService鎺ュ彛涓畾涔夊弬鏁拌漿鎹㈢殑鏂規硶錛屽涓?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">@WebService<br /></span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">interface</span><span style="color: #000000; "> TypeConvert {<br />    @WebMethod<br />    @XmlJavaTypeAdapter(UserTOAdapter.</span><span style="color: #0000FF; ">class</span><span style="color: #000000; ">)<br />    User addUser(User user);<br />}</span></div><br /><br /></div><img src ="http://www.tkk7.com/aoneany/aggbug/371010.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2012-02-29 16:29 <a href="http://www.tkk7.com/aoneany/articles/371010.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Spring鐨凞ispatcherServlet濡備綍娉ㄥ唽澶氫釜servlet鐨剎ml鏂囦歡http://www.tkk7.com/aoneany/articles/366846.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Tue, 20 Dec 2011 07:44:00 GMThttp://www.tkk7.com/aoneany/articles/366846.htmlhttp://www.tkk7.com/aoneany/comments/366846.htmlhttp://www.tkk7.com/aoneany/articles/366846.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/366846.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/366846.html鍦╳eb.xml涓紝鍙互閫氳繃*鍙峰尮閰嶅涓?servlet.xml鐨勬枃浠躲傚叿浣撴牸寮忓涓嬶細

 

    <servlet>
        
<servlet-name>test</servlet-name>
        
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        
<init-param>  
            
<description>鍔犺澆/WEB-INF/spring-mvc/鐩綍涓嬬殑鎵鏈塜ML浣滀負Spring MVC鐨勯厤緗枃浠?/span></description>  
            
<param-name>contextConfigLocation</param-name>  
            
<param-value>/WEB-INF/*-servlet.xml</param-value>  
        
</init-param>  
        
<load-on-startup>1</load-on-startup>
    
</servlet>
    
<servlet-mapping>
        
<servlet-name>test</servlet-name>
        
<url-pattern>*.do</url-pattern>
    
</servlet-mapping>

琛ㄧず鍔犺澆/WEB-INF/涓嬫墍鏈変互-servlet.xml緇撳熬鐨剎ml鏂囦歡



]]>
spring涓氳繃浠g爜娉ㄥ唽beanhttp://www.tkk7.com/aoneany/articles/365062.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Mon, 28 Nov 2011 14:24:00 GMThttp://www.tkk7.com/aoneany/articles/365062.htmlhttp://www.tkk7.com/aoneany/comments/365062.htmlhttp://www.tkk7.com/aoneany/articles/365062.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/365062.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/365062.htmlpublic static void main(String[] args)   
{   
 DefaultListableBeanFactory beanregistry
=new DefaultListableBeanFactory();   
 BeanFactory container
=(BeanFactory)bindViaCode(beanRegistry);   
 FXNewsProvider newsProvider
=(FXNewsProvider)container.getBean("djNewsProvider");   
 newsProvider.getAndPersistNews();   
}
   
public static BeanFactory bindViaCode(BeanDefinitionRegistry registry)   
{   
  AbstractBeanDefinition newsProvider
=new RootBeanDefintion(FXNewsProvider.class,true);   
AbstractBeanDefinition newsListener
=new RootBeanDefintion(DowJonesNewListerner.class,true);   
AbstractBeanDefinition newsPersister
=new RootBeanDefintion(DowJonesNewPersister.class,true);   
//灝哹ean瀹氫箟鍒版敞鍐屽鍣ㄤ腑   
registry.registerBeanDefinition("djNewsProvider",newsProvider);   
registry.registerBeanDefinition(
"djListener",newsListener);   
registry.registerBeanDefinition(
"djPersister",newsPersister);   
//鎸囧畾渚濊禆鍏崇郴   
//閫氳繃鏋勯犲嚱鏁版柟寮忔敞鍏?nbsp;  
ConstructorArgumentValues argValues=new ConstructorArgumentValues();   
argValues.addIndexedArgumentValue(
0,newsListener);   
argValues.addIndexedArgumentValue(
1,newsPresister);   
newsProvier.setConstructorArgumentValues(argValues);   
//閫氳繃setter鏂瑰紡娉ㄥ叆   
MutablepropertyValues propertyValues=new MutablePropertyValues();   
propertyValues.addPropertyValue(
new ropertyValue("newsListener",newsListener));   
propertyValues.addPropertyValue(
new ropertyValue("newsPresister",newsPresister));   
newsProvider.setPropertyValues(propertyValues);   
//緇戝畾瀹屾垚   
return (BeanFactory)registry;   
}
   
}


]]>
浣嶇Щ榪涘埗榪愮畻http://www.tkk7.com/aoneany/articles/348889.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Sat, 23 Apr 2011 13:58:00 GMThttp://www.tkk7.com/aoneany/articles/348889.htmlhttp://www.tkk7.com/aoneany/comments/348889.htmlhttp://www.tkk7.com/aoneany/articles/348889.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/348889.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/348889.html甯︾鍙峰彸縐?棰橈細錛?5 >> 2 = -4

15鍘熺爜: 銆銆00000000 00000000 00000000 00001111 //32浣?浜岃繘鍒?br /> 鍙嶇爜錛?銆銆 11111111 11111111 11111111 11110000 //0鍙?,1鍙極
琛ョ爜錛?銆銆 11111111 11111111 11111111 11110001 //鏈鍚庝綅鍔?,-15浜岃繘鍒?br /> 鍙崇Щ2浣嶏細銆 11111111 11111111 11111111 11111100 //鍙寵竟涓㈠純2浣?鍓嶉潰30浣嶄繚鐣?宸﹁竟琛?
鍙栧弽錛?nbsp;     00000000 00000000 00000000 00000011 //0鍙?,1鍙極
錛嬶紤:                                       3+1
緇撴灉:                                     錛濓紞錛?//璐熷彿淇濈暀,鍗佽繘鍒?/p>


甯︾鍙峰乏縐?棰? 10 << 2 = 40
10 琛ョ爜:    00000000 00000000 00000000 00001010 //32浣?浜岃繘鍒?br /> 宸︾Щ2浣?    00000000 00000000 00000000 00101000 //宸﹁竟涓㈠純2浣?鍙寵竟琛?
緇撴灉:                                        40 //鍗佽繘鍒?/p>

鏃犵鍙峰彸縐?棰橈細錛?321 >>> 30 = 3
4321鍘熺爜: 銆       00000000 00000000 00010000 11100011 //32浣?浜岃繘鍒?br /> 鍙嶇爜錛?銆銆        11111111 11111111 11101111 00011100 //0鍙?,1鍙極
琛ョ爜錛?銆銆        11111111 11111111 11101111 00011101 //鏈鍚庝綅鍔?,-4321浜岃繘鍒?br /> 鏃犵鍙峰彸縐?0浣嶏細銆 00000000 00000000 00000000 00000011 //鍙寵竟涓㈠純30浣?鍓嶉潰浜屼綅淇濈暀,宸﹁竟琛?
緇撴灉:                                                3 //鍗佽繘鍒?/p>


& 浣嶉昏緫涓?棰橈細44 & 21 = 4
44 琛ョ爜:    00000000 00000000 00000000 00101100 //32浣?浜岃繘鍒?br /> 21 琛ョ爜:    00000000 00000000 00000000 00010101 //32浣?浜岃繘鍒?br /> & 榪愮畻:     00000000 00000000 00000000 00000100 //瀵瑰簲鐨勪袱涓簩榪涘埗浣嶅潎涓?鏃?緇撴灉浣嶆墠涓? 鍚﹀垯涓?
緇撴灉:                                         4 //鍗佽繘鍒?nbsp;  
                                

| 浣嶉昏緫涓?棰橈細9 | 5 = 13
9 琛ョ爜:    00000000 00000000 00000000 00001001 //32浣?浜岃繘鍒?br /> 5 琛ョ爜:    00000000 00000000 00000000 00000101 //32浣?浜岃繘鍒?br /> | 榪愮畻:    00000000 00000000 00000000 00001101 //瀵瑰簲鐨勪簩涓簩榪涘埗浣嶆湁涓涓負1鏃訛紝緇撴灉浣嶅氨涓?
緇撴灉:                                       13 //鍗佽繘鍒?


^ 浣嶉昏緫寮傛垨 棰? 9 ^ 5 = 12
9 琛ョ爜:    00000000 00000000 00000000 00001001 //32浣?浜岃繘鍒?br /> 5 琛ョ爜:    00000000 00000000 00000000 00000101 //32浣?浜岃繘鍒?br /> | 榪愮畻:    00000000 00000000 00000000 00001100 //瀵瑰簲鐨勪簩榪涘埗浣嶇浉寮傛椂錛岀粨鏋滀負1
緇撴灉:                                       12 //鍗佽繘鍒?/p>


~ 浣嶉昏緫鍙?棰? ~9 = -10
9 琛ョ爜:    00000000 00000000 00000000 00001001 //32浣?浜岃繘鍒?br /> ~ 榪愮畻:    11111111 11111111 11111111 11110110 //鏈楂樹綅涓?琛ㄧず涓轟竴涓礋鏁?鍒欒繘琛屽彇鍙嶅姞1
鍙栧弽:      00000000 00000000 00000000 00001001 //32浣?浜岃繘鍒?br /> 錛嬶紤:                                      9+1 //32浣?浜岃繘鍒?br /> 緇撴灉:                                      -10 //鍗佽繘鍒?/p>


鍦ㄨ綆楁満緋葷粺涓紝鏁板間竴寰嬬敤琛ョ爜鏉ヨ〃紺猴紙瀛樺偍錛夈?br /> 涓昏鍘熷洜錛氫嬌鐢ㄨˉ鐮侊紝鍙互灝嗙鍙蜂綅鍜屽叾瀹冧綅緇熶竴澶勭悊錛涘悓鏃訛紝鍑忔硶涔熷彲鎸夊姞娉曟潵澶勭悊銆傚彟澶栵紝涓や釜鐢ㄨˉ
鐮佽〃紺虹殑鏁扮浉鍔犳椂錛屽鏋滄渶楂樹綅錛堢鍙蜂綅錛夋湁榪涗綅錛屽垯榪涗綅琚垗寮冦?br /> 琛ョ爜涓庡師鐮佺殑杞崲榪囩▼鍑犱箮鏄浉鍚岀殑銆?br /> 鏁板肩殑琛ョ爜琛ㄧず涔熷垎涓ょ鎯呭喌錛?br /> 錛?錛夋鏁扮殑琛ョ爜錛氫笌鍘熺爜鐩稿悓銆?br />       渚嬪錛?9鐨勮ˉ鐮佹槸00001001銆?br /> 錛?錛夎礋鏁扮殑琛ョ爜錛氱鍙蜂綅涓?錛屽叾浣欎綅涓鴻鏁扮粷瀵瑰肩殑鍘熺爜鎸変綅鍙栧弽錛涚劧鍚庢暣涓暟鍔?銆?br />       渚嬪錛?7鐨勮ˉ鐮侊細鍥犱負鏄礋鏁幫紝鍒欑鍙蜂綅涓?#8220;1”,鏁翠釜涓?0000111錛涘叾浣?浣嶄負-7鐨勭粷瀵瑰?7鐨勫師鐮?br />      0000111鎸変綅鍙栧弽涓?111000錛涘啀鍔?錛屾墍浠?7鐨勮ˉ鐮佹槸11111001銆?br /> 宸茬煡涓涓暟鐨勮ˉ鐮侊紝姹傚師鐮佺殑鎿嶄綔鍒嗕袱縐嶆儏鍐碉細
錛?錛夊鏋滆ˉ鐮佺殑絎﹀彿浣嶄負“0”錛岃〃紺烘槸涓涓鏁幫紝鎵浠ヨˉ鐮佸氨鏄鏁扮殑鍘熺爜銆?br /> 錛?錛夊鏋滆ˉ鐮佺殑絎﹀彿浣嶄負“1”錛岃〃紺烘槸涓涓礋鏁幫紝姹傚師鐮佺殑鎿嶄綔鍙互鏄細絎﹀彿浣嶄負1錛屽叾浣欏悇浣嶅彇鍙嶏紝鐒跺悗鍐嶆暣涓暟鍔?銆?br />      渚嬪錛屽凡鐭ヤ竴涓ˉ鐮佷負11111001錛屽垯鍘熺爜鏄?0000111錛?7錛夛細鍥犱負絎﹀彿浣嶄負“1”錛岃〃紺烘槸涓涓礋鏁幫紝鎵浠ヨ浣嶄笉鍙橈紝浠嶄負“1”錛涘叾浣?浣?111001鍙栧弽鍚庝負0000110錛涘啀鍔?錛屾墍浠ユ槸10000111銆?

 

杞澆錛?a >http://blog.csdn.net/zjp8023/archive/2009/05/29/4224121.aspx



]]>
鎮ㄧ殑灝忔暟鐐瑰埌鍝噷鍘諱簡http://www.tkk7.com/aoneany/articles/348753.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Thu, 21 Apr 2011 15:36:00 GMThttp://www.tkk7.com/aoneany/articles/348753.htmlhttp://www.tkk7.com/aoneany/comments/348753.htmlhttp://www.tkk7.com/aoneany/articles/348753.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/348753.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/348753.htmlJava 璇█鏀寔涓ょ鍩烘湰鐨勬誕鐐圭被鍨嬶細 float 鍜?double 錛屼互鍙婁笌瀹冧滑瀵瑰簲鐨勫寘瑁呯被 Float 鍜?Double 銆傚畠浠兘渚濇嵁 IEEE 754 鏍囧噯錛岃鏍囧噯涓?32 浣嶆誕鐐瑰拰 64 浣嶅弻綺懼害嫻偣浜岃繘鍒跺皬鏁板畾涔変簡浜岃繘鍒舵爣鍑嗐?

IEEE 754 鐢ㄧ瀛﹁鏁版硶浠ュ簳鏁頒負 2 鐨勫皬鏁版潵琛ㄧず嫻偣鏁般侷EEE 嫻偣鏁扮敤 1 浣嶈〃紺烘暟瀛楃殑絎﹀彿錛岀敤 8 浣嶆潵琛ㄧず鎸囨暟錛岀敤 23 浣嶆潵琛ㄧず灝炬暟錛屽嵆灝忔暟閮ㄥ垎銆備綔涓烘湁絎﹀彿鏁存暟鐨勬寚鏁板彲浠ユ湁姝h礋涔嬪垎銆傚皬鏁伴儴鍒嗙敤浜岃繘鍒訛紙搴曟暟 2錛夊皬鏁版潵琛ㄧず錛岃繖鎰忓懗鐫鏈楂樹綅瀵瑰簲鐫鍊??(2 -1)錛岀浜屼綅瀵瑰簲鐫 ?(2 -2)錛屼緷姝ょ被鎺ㄣ傚浜庡弻綺懼害嫻偣鏁幫紝鐢?11 浣嶈〃紺烘寚鏁幫紝52 浣嶈〃紺哄熬鏁般侷EEE 嫻偣鍊肩殑鏍煎紡濡傚浘 1 鎵紺恒?


鍥?1. IEEE 754 嫻偣鏁扮殑鏍煎紡
鍥?1. IEEE 754 嫻偣鏁扮殑鏍煎紡

鍥犱負鐢ㄧ瀛﹁鏁版硶鍙互鏈夊縐嶆柟寮忔潵琛ㄧず緇欏畾鏁板瓧錛屾墍浠ヨ瑙勮寖鍖栨誕鐐規暟錛屼互渚跨敤搴曟暟涓?2 騫朵笖灝忔暟鐐瑰乏杈逛負 1 鐨勫皬鏁版潵琛ㄧず錛屾寜鐓ч渶瑕佽皟鑺傛寚鏁板氨鍙互寰楀埌鎵闇鐨勬暟瀛椼傛墍浠ワ紝渚嬪錛屾暟 1.25 鍙互琛ㄧず涓哄熬鏁頒負 1.01錛屾寚鏁頒負 0錛?(-1) 0*1.01 2*2 0

鏁?10.0 鍙互琛ㄧず涓哄熬鏁頒負 1.01錛屾寚鏁頒負 3錛?(-1) 0*1.01 2*2 3

 

涓涓崄榪涘埗鏁拌兘鍚︾敤浜岃繘鍒舵誕鐐規暟綺劇‘琛ㄧず錛屽叧閿湪浜庡皬鏁伴儴鍒嗐傛垜浠潵鐪嬩竴涓渶綆鍗曠殑灝忔暟錛堣漿錛塈EEE754鑳藉惁綺劇‘琛ㄧず銆傛寜鐓т箻浠?鍙栨暣鏁頒綅鐨勬柟娉曪紝鏈夛細

錛堣漿錛塈EEE754

寰楀埌涓涓棤闄愬驚鐜殑浜岃繘鍒跺皬鏁?img title="錛堣漿錛塈EEE754" border="0" alt="錛堣漿錛塈EEE754" src="http://www.cnblogs.com/images/cnblogs_com/bossin/WindowsLiveWriter/IEEE754_B489/clip_image020.gif" width="177" height="24" real_src="http://www.cnblogs.com/images/cnblogs_com/bossin/WindowsLiveWriter/IEEE754_B489/clip_image020.gif" />錛岀敤鏈夐檺浣嶆棤娉曡〃紺烘棤闄愬驚鐜皬鏁幫紝鍥犳錛?img title="錛堣漿錛塈EEE754" border="0" alt="錛堣漿錛塈EEE754" src="http://www.cnblogs.com/images/cnblogs_com/bossin/WindowsLiveWriter/IEEE754_B489/clip_image016%5B1%5D.gif" width="44" height="24" real_src="http://www.cnblogs.com/images/cnblogs_com/bossin/WindowsLiveWriter/IEEE754_B489/clip_image016%5B1%5D.gif" />鏃犳硶鐢↖EEE 754嫻偣鏁扮簿紜〃紺恒備粠涓篃鍙互鐪嬪埌錛氱敱浜?/p>

錛堣漿錛塈EEE754錛?/p>

榪欏洓涓暟涔熸棤娉曠簿紜〃紺恒傚悓鐞嗭細

錛堣漿錛塈EEE754

涔熸棤娉曠敤IEEE 754嫻偣鏁扮簿紜〃紺恒?/p>

鍦ㄤ互0.1~0.9緇撳熬鐨?涓皬鏁頒腑錛屽彧鏈?.5鍙互綺劇‘琛ㄧず錛氾紙濡傦級錛堣漿錛塈EEE754錛岃屽叾浠栧潎鏃犳硶榪涜綺劇‘杞崲銆?/p>

]]>
閬嶅巻鏌ユ壘鎬ц兘嫻嬭瘯鎶ュ憡錛圡ap,Array,RBTree錛?/title><link>http://www.tkk7.com/aoneany/articles/348346.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Fri, 15 Apr 2011 05:39:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/348346.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/348346.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/348346.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/348346.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/348346.html</trackback:ping><description><![CDATA[  <p><span style="font-family: 瀹嬩綋">  </p> <p><span style="font-family: 瀹嬩綋">涓婃鍙祴璇曟煡璇㈢殑鎬ц兘錛岃屼笖閮芥槸鍦ㄦ渶浼樼殑鎯呭喌涓嬭繘琛岋紝娌℃湁鑰冭檻鏉′粬鎯呭喌錛岃繖嬈¢噸鏂頒慨鏀逛簡嫻嬭瘯鐢ㄤ緥錛屾妸鏁翠釜嫻嬭瘯鐨勫悇涓繃紼嬫弿榪板嚭鏉ワ紙鍔犺澆錛屾帓搴忥紝鏌ユ壘鐨勬晥鐜囷級銆?/span></p> <p><strong><span style="font-family: 瀹嬩綋">鍦烘櫙錛?/span></strong><span style="font-family: 瀹嬩綋">闅忔満鐢熸垚</span>5<span style="font-family: 瀹嬩綋">鐧句竾鏉′笉鍚岀殑璁板綍錛岃屾瘡鏉¤褰曚笉瀛樺湪鐩稿悓鐨勬儏鍐點傜幇鍦ㄥ皢榪?/span>5<span style="font-family: 瀹嬩綋">鐧句竾鏉¤褰曞湪涓嶅悓鐨勬儏鍐典笅榪涜嫻嬭瘯銆傛祴璇曠粨鏋滃涓?/span></p> <p>1<span style="font-family: 瀹嬩綋">銆?/span>5<span style="font-family: 瀹嬩綋">鐧句竾鏉¤褰曪紝鎬誨叡鏌ヨ</span>50<span style="font-family: 瀹嬩綋">涓囨錛堟煡璇㈠墠</span>50<span style="font-family: 瀹嬩綋">涓囨潯璁板綍錛?/span></p> <p><span style="font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span>:<strong><span style="color: red">6.11</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p><span style="font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鎺掑簭鑺辮垂</span>:<strong><span style="color: red">18.313</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p><span style="font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鏌ユ壘鑺辮垂</span>:<strong><span style="color: red">3.297</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p><span style="font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鍏辮姳璐?/span>:<strong><span style="color: red">27.72</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p><span style="font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鎬誨叡鍗?/span>:<strong><span style="color: red">100005888</strong> </span><span style="font-family: 瀹嬩綋">瀛楄妭</span></p> <p>RBTree<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span>:<strong><span style="color: red">53.644</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>RBTree<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鏌ユ壘鍏辮姳璐?/span>:<strong><span style="color: red">2.86</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>RBTree<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏辮姳璐?/span>:<strong><span style="color: red">56.504</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>RBTREE<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏卞崰鐢?/span>:<strong><span style="color: red">240004864</strong> </span><span style="font-family: 瀹嬩綋">瀛楄妭</span></p> <p>MAP<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span>:<strong><span style="color: red">7.282</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>MAP<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鏌ユ壘鑺辮垂</span>:<strong><span style="color: red">0.11</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>MAP<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏辮姳璐?/span>:<strong><span style="color: red">7.392</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>MAP<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯</span> <span style="font-family: 瀹嬩綋">鍏卞崰鐢?/span>:<strong><span style="color: red">173554048</strong> </span><span style="font-family: 瀹嬩綋">瀛楄妭</span></p> <p>2<span style="font-family: 瀹嬩綋">銆?/span>5<span style="font-family: 瀹嬩綋">鐧句竾鏉¤褰曪紝鎬誨叡鏌ヨ</span>5<span style="font-family: 瀹嬩綋">鐧句竾嬈★紙姣忔潯璁板綍鏌ヨ涓嬈★級</span></p> <p><span style="font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span>:<strong><span style="color: red">6.078</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p><span style="font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鎺掑簭鑺辮垂</span>:<strong><span style="color: red">17.642</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p><span style="font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鏌ユ壘鑺辮垂</span>:<strong><span style="color: red">33.049</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p><span style="font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鍏辮姳璐?/span>:<strong><span style="color: red">56.769</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p><span style="font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鎬誨叡鍗犵敤</span> = <strong><span style="color: red">100005552</strong> </span><span style="font-family: 瀹嬩綋">瀛楄妭</span></p> <p>RBTree<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span>:<strong><span style="color: red">54.8</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>RBTree<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鏌ユ壘鍏辮姳璐?/span>:<strong><span style="color: red">34.581</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>RBTree<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏辮姳璐?/span>:<strong><span style="color: red">89.381</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>RBTREE<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏卞崰鐢?/span> = <strong><span style="color: red">240005024</strong> </span><span style="font-family: 瀹嬩綋">瀛楄妭</span></p> <p>MAP<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span>:<strong><span style="color: red">6.501</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>MAP<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鏌ユ壘鑺辮垂</span>:<strong><span style="color: red">0.937</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>MAP<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏辮姳璐?/span>:<strong><span style="color: red">7.438</strong></span><span style="font-family: 瀹嬩綋">縐?/span></p> <p>MAP<span style="font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯</span> <span style="font-family: 瀹嬩綋">鍏卞崰鐢?/span>=<strong><span style="color: red">173553888</strong> </span><span style="font-family: 瀹嬩綋">瀛楄妭</span></p> <p>3<span style="font-family: 瀹嬩綋">銆?/span>5<span style="font-family: 瀹嬩綋">鐧句竾鏉¤褰曪紝鎬誨叡鏌ヨ</span>5<span style="font-family: 瀹嬩綋">鍗冧竾嬈★紙姣忔潯鏁版嵁鏌ヨ</span>10<span style="font-family: 瀹嬩綋">嬈★級</span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">6.11</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鎺掑簭鑺辮垂</span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">17.861</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鏌ユ壘鑺辮垂</span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">331.224</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鍏辮姳璐?/span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">355.195</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鎬誨叡鍗犵敤</span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">99990456</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">瀛楄妭</span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 'Courier New'">RBTree</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">53.097</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 'Courier New'">RBTree</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鏌ユ壘鍏辮姳璐?/span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">345.866</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 'Courier New'">RBTree</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏辮姳璐?/span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">398.963</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 'Courier New'">RBTREE</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏卞崰鐢?/span><span style="font-size: 10pt; color: black; font-family: 'Courier New'"> = </span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">240005248 </span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">瀛楄妭</span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 'Courier New'">MAP</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">7.235</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 'Courier New'">MAP</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鏌ユ壘鑺辮垂</span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">9.375</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 'Courier New'">MAP</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏辮姳璐?/span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">16.61</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> <p style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 'Courier New'">MAP</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鍏卞崰鐢?/span><span style="font-size: 10pt; color: black; font-family: 'Courier New'">:</span><strong><span style="font-size: 10pt; color: red; font-family: 'Courier New'">173554048</span></strong><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">瀛楄妭<br /> <br /> 嫻嬭瘯鏂囦歡鍦板潃錛?nbsp; <a href="/Files/aoneany/search2.rar">/Files/aoneany/search2.rar</a><br /> <br /> ================================================================<br />     </p> <p class="MsoNormal"><span style="color: #1f497d; font-family: 瀹嬩綋">鍓嶉潰鐨勬祴璇曠畻娉曚腑錛屾湁涓涓湴鏂瑰伔鎳掞紙鐩存帴浣跨敤</span><span lang="EN-US" style="color: #1f497d">String.CompareTo</span><span style="color: #1f497d; font-family: 瀹嬩綋">鏂規硶榪涜姣旇緝錛夊鑷存煡璇㈡晥鐜囧緢宸紝鐜板湪瀵瑰叾榪涜浼樺寲錛屾祴璇曞悗鐨勬暟鎹負錛?/span><span lang="EN-US" style="color: #1f497d"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="color: #1f497d"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">5</span><span style="font-family: 瀹嬩綋">鐧句竾鏉¤褰曪紝鎬誨叡鏌ヨ</span><span lang="EN-US">5</span><span style="font-family: 瀹嬩綋">鐧句竾嬈★紙姣忔潯璁板綍鏌ヨ涓嬈★級</span><span lang="EN-US" style="color: #1f497d"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">:<span style="color: red"><strong>1.016</strong></span></span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鎺掑簭鑺辮垂</span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">:<span style="color: red"><strong>14.485</strong></span></span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鏌ユ壘鑺辮垂</span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">:<span style="color: red"><strong>0.703</strong></span></span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鏁扮粍鎬ц兘嫻嬭瘯鍏辮姳璐?/span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">:<strong style="color: red">16.204</strong></span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">RBTree</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">:<strong style="color: red">20.705</strong></span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">RBTree</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鏌ユ壘鍏辮姳璐?/span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">:<strong style="color: red">3.75</strong></span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">RBTree</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏辮姳璐?/span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">:<strong style="color: red">24.455</strong></span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">MAP</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍔犺澆鑺辮垂</span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">:<strong style="color: red">3.875</strong></span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">MAP</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鏌ユ壘鑺辮垂</span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">:<strong style="color: red">1.516</strong></span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New'"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: left" align="left"><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">MAP</span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">鎬ц兘嫻嬭瘯鍏辮姳璐?/span><span lang="EN-US" style="font-size: 10pt; color: black; font-family: 'Courier New'">:<strong style="color: red">5.391</strong></span><span style="font-size: 10pt; color: black; font-family: 瀹嬩綋">縐?/span></p> </span></span> <img src ="http://www.tkk7.com/aoneany/aggbug/348346.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2011-04-15 13:39 <a href="http://www.tkk7.com/aoneany/articles/348346.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Eclipse閮ㄧ講Tomcat鏈嶅姟鏃墮渶瑕佹敞鎰忕殑鍦版柟http://www.tkk7.com/aoneany/articles/343722.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Fri, 28 Jan 2011 10:01:00 GMThttp://www.tkk7.com/aoneany/articles/343722.htmlhttp://www.tkk7.com/aoneany/comments/343722.htmlhttp://www.tkk7.com/aoneany/articles/343722.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/343722.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/343722.html鍦╟lasspath鐨剈ser Entities鑺傜偣涓嬫坊鍔爐omcat鐨刯ar鍖呮椂錛岄渶瑕佸紩鍏in鐩綍涓嬬殑tomcat-juli.jar鍖咃紝鎴杔ib鐩綍涓嬫墍鏈夌殑jar鍖呫?/p>

]]>
瀛楃涓?Thinking in Java璇諱功絎旇http://www.tkk7.com/aoneany/articles/304020.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Sat, 28 Nov 2009 05:54:00 GMThttp://www.tkk7.com/aoneany/articles/304020.htmlhttp://www.tkk7.com/aoneany/comments/304020.htmlhttp://www.tkk7.com/aoneany/articles/304020.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/304020.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/304020.htmlString瀵硅薄鏄笉鍙彉鐨?/p>

Scanner鎵弿瀛楃涓插璞°?/p>

澶囨敞錛?/p>

鍦╦ava緙栬瘧濂界殑class鏂囦歡涓?鏈変釜鍖哄煙縐頒負Constant Pool,浠栨槸涓涓敱鏁扮粍緇勬垚鐨勮〃,綾誨瀷
涓篶p_info constant_pool[],鐢ㄦ潵瀛樺偍紼嬪簭涓嬌鐢ㄧ殑鍚勭甯擱噺,鍖呮嫭Class/String/Integer絳夊悇
縐嶅熀鏈琂ava鏁版嵁綾誨瀷,璇︽儏鍙傝The Java Virtual Machine Specification
4.4绔犺妭.

瀵逛簬Constant Pool,琛ㄧ殑鍩烘湰閫氱敤緇撴瀯涓?
cp_info {
        u1 tag;
        u1 info[];
}

tag鏄竴涓暟瀛?鐢ㄦ潵琛ㄧず瀛樺偍鐨勫父閲忕殑綾誨瀷,渚嬪8琛ㄧずString綾誨瀷,5琛ㄧずLong綾誨瀷,info[]鏍規嵁
綾誨瀷鐮乼ag鐨勪笉鍚屼細鍙戠敓鐩稿簲鍙樺寲.
瀵逛簬String綾誨瀷,琛ㄧ殑緇撴瀯涓?
CONSTANT_String_info {
        u1 tag;
        u2 string_index;
}
tag鍥哄畾涓?,string_index鏄瓧絎︿覆鍐呭淇℃伅,綾誨瀷涓?
CONSTANT_Utf8_info {
        u1 tag;
        u2 length;
        u1 bytes[length];
}
tag鍥哄畾涓?,length涓哄瓧絎︿覆鐨勯暱搴?bytes[length]涓哄瓧絎︿覆鐨勫唴瀹?

浠g爜鏍蜂緥
(浠ヤ笅浠g爜鍦╦dk6涓紪璇?
涓轟簡璇︾粏鐞嗚ВConstant Pool鐨勭粨鏋?鎴戜滑鍙傜湅涓浜涗唬鐮?
    String s1
= "sss111";
    String s2
= "sss222";
    System.out.println(s1
+ " " + s2);
鐢變簬
"sss111"鍜?/span>"sss222"閮芥槸瀛楃涓插父閲?鍦ㄧ紪璇戞湡灝卞凡緇忓垱寤哄ソ浜嗗瓨鍌ㄥ湪class鏂囦歡涓?
鍦ㄧ紪璇戝悗鐨刢lass鏂囦歡涓細瀛樺湪榪?涓父閲忕殑瀵瑰簲琛ㄧず:
08 00 11 01 00 06 73 73 73 31 31 31 08 00 13 01 ; ......sss111....
00 06 73 73 73 32 32 32                         ; ..sss222

鏍規嵁涓婇潰璇寸殑String甯擱噺緇撴瀯,鎴戜滑鍒嗘瀽涓涓?br /> 寮濮嬬殑08涓篊ONSTANT_String_info緇撴瀯涓殑tag,鑰?1搴旇鏄畠鐨勭浉瀵瑰紩鐢?01涓?br /> CONSTANT_Utf8_info鐨則ag,06涓哄搴斿瓧絎︿覆鐨勯暱搴?
73 73 73 31 31 31涓哄瓧絎︿覆瀵?br /> 搴旂殑緙栫爜,鎺ョ潃鍒嗘瀽,浼氬彂鐜板悗闈㈢殑鏄搴?/span>"sss222"鐨勫瓨鍌ㄧ粨鏋?

緇忚繃涓婇潰鍒嗘瀽,鎴戜滑鐭ラ亾浜?1鍜?3鏄袱涓瓧絎︿覆鐨勭浉瀵瑰紩鐢?灝卞彲浠ヤ慨鏀筩lass鏂囦歡
鏉ヤ慨鏀規墦鍗扮殑鍐呭,鎶奵lass鏂囦歡涓殑
00 6E 00 04 00 03 00 00 00 24 12 10 4C 12 12 4D
鏀規垚
00 6E 00 04 00 03 00 00 00 24 12 10 4C 12 10 4D
紼嬪簭灝變細杈撳嚭sss111 sss111,鑰屼笉鏄拰鍘熺▼搴忎竴鏍瘋緭鍑簊ss111 sss222,鍥犱負鎴?br /> 浠妸瀵?/span>"sss222"鐨勭浉瀵瑰紩鐢?2鏀規垚浜嗗"sss111"鐨勭浉瀵瑰紩鐢?0.

------------鍒嗗壊綰?br /> public class Test {
   
public static void main(String[] args) {
        String s1
= "sss111";
        String s2
= "sss111";
    }
}

鍦ㄤ笂闈㈢▼搴忎腑瀛樺湪2涓浉鍚岀殑甯擱噺
"sss111",瀵逛簬n涓肩浉鍚岀殑String甯擱噺,鍦–onstant Pool涓?br /> 鍙細鍒涘緩涓涓?鎵浠ュ湪緙栬瘧濂界殑class鏂囦歡涓?鎴戜滑鍙兘鎵懼埌涓涓"sss111"鐨勮〃紺?
000000abh:
08 00 11 01 00 06 73 73 73 31 31 31             ; ......sss111

鍦ㄧ▼搴忔墽琛岀殑鏃跺?Constant Pool浼氬偍瀛樺湪Method Area,鑰屼笉鏄痟eap涓?

鍙﹀,瀵逛簬
""鍐呭涓虹┖鐨勫瓧絎︿覆甯擱噺,浼氬垱寤轟竴涓暱搴︿負0,鍐呭涓虹┖鐨勫瓧絎︿覆鏀懼埌Constant Pool涓?
鑰屼笖Constant Pool鍦ㄨ繍琛屾湡鏄彲浠ュ姩鎬佹墿灞曠殑.

鍏充簬String綾葷殑璇存槑

1.String浣跨敤private final char value[]鏉ュ疄鐜板瓧絎︿覆鐨勫瓨鍌?涔熷氨鏄String瀵硅薄鍒涘緩涔嬪悗,灝變笉鑳?br /> 鍐嶄慨鏀規瀵硅薄涓瓨鍌ㄧ殑瀛楃涓插唴瀹?灝辨槸鍥犱負濡傛,鎵嶈String綾誨瀷鏄笉鍙彉鐨?immutable).

2.String綾繪湁涓涓壒孌婄殑鍒涘緩鏂規硶,灝辨槸浣跨敤""鍙屽紩鍙鋒潵鍒涘緩.渚嬪new String("i am")瀹為檯鍒涘緩浜?涓?br /> String瀵硅薄,涓涓槸"i am"閫氳繃""鍙屽紩鍙峰垱寤虹殑,鍙︿竴涓槸閫氳繃new鍒涘緩鐨?鍙笉榪囦粬浠垱寤虹殑鏃舵湡涓嶅悓,
涓涓槸緙栬瘧鏈?涓涓槸榪愯鏈?/span>!

3.java瀵筍tring綾誨瀷閲嶈澆浜?/span>+鎿嶄綔絎?鍙互鐩存帴浣跨敤+瀵逛袱涓瓧絎︿覆榪涜榪炴帴.

4.榪愯鏈熻皟鐢⊿tring綾葷殑intern()鏂規硶鍙互鍚慡tring Pool涓姩鎬佹坊鍔犲璞?

String鐨勫垱寤烘柟娉?/strong>

涓鑸湁濡備笅鍑犵
1.鐩存帴浣跨敤""寮曞彿鍒涘緩.
2.浣跨敤new String()鍒涘緩.
3.浣跨敤new String("someString")鍒涘緩浠ュ強鍏朵粬鐨勪竴浜涢噸杞芥瀯閫犲嚱鏁板垱寤?
4.浣跨敤閲嶈澆鐨勫瓧絎︿覆榪炴帴鎿嶄綔絎?/span>+鍒涘緩.

闈㈣瘯棰?

String s1 = new String("s1") ;
String s2
= new String("s1") ;
涓婇潰鍒涘緩浜嗗嚑涓猄tring瀵硅薄
?
絳旀:3涓?,緙栬瘧鏈烠onstant Pool涓垱寤?涓?榪愯鏈焗eap涓垱寤?涓?




]]>
java瀹氫綅鎵撳嵃錛堝錛氳秴甯傦紝紲ㄦ嵁鎵撳嵃錛?/title><link>http://www.tkk7.com/aoneany/articles/287601.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Tue, 21 Jul 2009 03:25:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/287601.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/287601.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/287601.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/287601.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/287601.html</trackback:ping><description><![CDATA[<p>Java鑷粠闂笘浠ユ潵鍦ㄥ悇鏂歸潰鍙戝睍榪呴燂紝浣嗘槸涓鐩翠互鏉ワ紝鎵撳嵃杈撳嚭鏄痡ava鏈寮辯殑鏂歸潰銆備簨瀹炰笂錛宩ava1.0涓嶆敮鎸佷換浣曟墦鍗板姛鑳姐侸ava1.1鍦?java.awt鍖呴噷鍖呭惈浜嗕竴涓彨鍋歅rintJob鐨勭被錛屼絾鏄繖涓被鎻愪緵鐨勬墦鍗板姛鑳藉崄鍒嗙矖緋欏拰涓嶅彲闈犮傚綋java1.2闂笘錛屽畠鍥寸粫 PrinterJob璁捐浜嗕竴涓畬鏁寸嫭绔嬬殑鎵撳嵃鏈哄埗錛堝彨鍋歫ava2D printing API錛夛紝騫朵笖鍦╦ava.awt.print鍖呴噷瀹氫箟浜嗕竴浜涙柊鐨勭被鍜屾帴鍙c傝繖浜涗嬌寰楀熀浜嶱rintJob鎵撳嵃鏈哄埗錛堝氨鏄疉WT printing錛夊熀鏈崚搴燂紝铏界劧PrintJob浠庢湭琚姩鍑昏屼笖鑷沖皯鍦ㄨ繖綃囨枃绔犻噷浠嶇劧鏄竴涓彁渚涙妧鏈殑綾匯?</p> <p>銆銆鍦↗2SE1.3閲屽綋PrintJob鐨勫姛鑳芥墿灞曞埌鍙互閫氳繃鍦╦ava.awt鍖呴噷鐨凧obAttributes 鍜孭ageAttributes涓や釜綾昏瀹氬伐紼嬪拰欏甸潰鐨勫睘鎬ф椂鍙戠敓浜嗕竴浜涢澶栫殑鏀瑰彉銆傞殢鐫J2SE1.3鐨勫彂甯冿紝鎵撳嵃鍔熻兘鐩稿簲鐨勫緱鍒頒簡瀹屽杽錛涗絾鏄湪娣峰悎浣跨敤榪欎袱縐嶅畬鍏ㄤ笉鍚岀殑鎵撳嵃鏈哄埗鐨勬椂鍊欎粛鐒跺瓨鍦ㄤ竴浜涢棶棰樸傛瘮濡傦紝榪欎袱縐嶆満鍒朵嬌鐢╦ava.awt.Graphics榪欎釜綾葷殑涓涓帴鍙f潵灞曠幇鎵撳嵃鍐呭錛屾剰鍛崇潃鎵鏈夎鎵撳嵃鐨勪笢瑗塊兘蹇呴』鐢ㄤ竴寮犲浘鐗囪〃紺恒傚彟澶栵紝瀹屽杽鐨凱rintJob鎻愪緵浜嗗緢鏈夐檺鐨勫伐紼嬬浉鍏沖睘鎬х殑璁劇疆錛涜繖涓ょ鏈哄埗閮芥病鏈夊姙娉曢氳繃紼嬪簭鏉ラ夋嫨鐩爣鎵撳嵃鏈恒?</p> <p>銆銆Java鎵撳嵃鏈澶х殑鏀瑰彉鏉ヨ嚜浜嶫2SE1.4鐨勫彂甯冨甫鏉ョ殑Java鎵撳嵃鏈嶅姟API銆傝繖涓涓変唬Java鎵撳嵃鏀寔鎺ュ彛紿佺牬浜嗗厛鍓嶆彁鍒扮殑灞闄愭с傚洜涓烘柊鐨凙PI灝辨槸浠ュ墠涓ょ鏃х殑鎵撳嵃鏈哄埗瀹氫箟鐨勫姛鑳藉嚱鏁扮殑涓涓埗闆嗐?</p> <p>涓嬮潰鏄垜閫氳繃榪欎簺API鍐欑殑瀹氫綅鎵撳嵃紺轟緥浠g爜錛屽笇鏈涘鐢╦ava瀹炵幇鎵撳嵃鐨勬湅鍙嬫湁涓瀹氱殑甯姪錛?<br /> 鍦–entOS4.4錛宩dk1.6涓嬫祴璇曢氳繃銆?</p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff">import</span><span style="color: #000000"> java.awt.Color; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.awt.Font; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.awt.Graphics; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.awt.Graphics2D; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.awt.print.PageFormat; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.awt.print.Printable; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.awt.print.PrinterException; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.Doc; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.DocFlavor; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.DocPrintJob; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.PrintException; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.PrintService; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.PrintServiceLookup; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.SimpleDoc; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.attribute.DocAttributeSet; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.attribute.HashDocAttributeSet; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.attribute.HashPrintRequestAttributeSet; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.attribute.PrintRequestAttributeSet; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.print.attribute.standard.MediaSizeName; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.swing.JOptionPane; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img id="Codehighlighter1_746_799_Open_Image" onclick="this.style.display='none'; Codehighlighter1_746_799_Open_Text.style.display='none'; Codehighlighter1_746_799_Closed_Image.style.display='inline'; Codehighlighter1_746_799_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_746_799_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_746_799_Closed_Text.style.display='none'; Codehighlighter1_746_799_Open_Image.style.display='inline'; Codehighlighter1_746_799_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_746_799_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/** */</span><span id="Codehighlighter1_746_799_Open_Text"><span style="color: #008000">/**</span><span style="color: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />* java瀹氫綅鎵撳嵃錛屾妸鎵撳嵃鍐呭鎵撳埌鎸囧畾鐨勫湴鏂廣?nbsp;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />* <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />* </span><span style="color: #808080">@author</span><span style="color: #008000"> lyb <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />* <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" /></span><span style="color: #008000">*/</span></span><span style="color: #000000"> <br /> <img id="Codehighlighter1_848_3870_Open_Image" onclick="this.style.display='none'; Codehighlighter1_848_3870_Open_Text.style.display='none'; Codehighlighter1_848_3870_Closed_Image.style.display='inline'; Codehighlighter1_848_3870_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_848_3870_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_848_3870_Closed_Text.style.display='none'; Codehighlighter1_848_3870_Open_Image.style.display='inline'; Codehighlighter1_848_3870_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> LocatePrint </span><span style="color: #0000ff">implements</span><span style="color: #000000"> Printable </span><span id="Codehighlighter1_848_3870_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_848_3870_Open_Text"><span style="color: #000000">{ <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">private</span><span style="color: #000000"> </span><span style="color: #0000ff">int</span><span style="color: #000000"> PAGES </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">private</span><span style="color: #000000"> String printStr; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img id="Codehighlighter1_915_1037_Open_Image" onclick="this.style.display='none'; Codehighlighter1_915_1037_Open_Text.style.display='none'; Codehighlighter1_915_1037_Closed_Image.style.display='inline'; Codehighlighter1_915_1037_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_915_1037_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_915_1037_Closed_Text.style.display='none'; Codehighlighter1_915_1037_Open_Image.style.display='inline'; Codehighlighter1_915_1037_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span id="Codehighlighter1_915_1037_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/**/</span><span id="Codehighlighter1_915_1037_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />     * Graphic鎸囨槑鎵撳嵃鐨勫浘褰㈢幆澧冿紱PageFormat鎸囨槑鎵撳嵃欏墊牸寮忥紙欏甸潰澶у皬浠ョ偣涓鴻閲忓崟浣嶏紝 <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />     * 1鐐逛負1鑻卞鐨?/72錛?鑻卞涓?5.4姣背銆侫4綰稿ぇ鑷翠負595×842鐐癸級錛沺age鎸囨槑欏靛彿 <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />     </span><span style="color: #008000">*/</span></span><span style="color: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">int</span><span style="color: #000000"> print(Graphics gp, PageFormat pf, </span><span style="color: #0000ff">int</span><span style="color: #000000"> page) <br /> <img id="Codehighlighter1_1136_2367_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1136_2367_Open_Text.style.display='none'; Codehighlighter1_1136_2367_Closed_Image.style.display='inline'; Codehighlighter1_1136_2367_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1136_2367_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1136_2367_Closed_Text.style.display='none'; Codehighlighter1_1136_2367_Open_Image.style.display='inline'; Codehighlighter1_1136_2367_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">throws</span><span style="color: #000000"> PrinterException </span><span id="Codehighlighter1_1136_2367_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1136_2367_Open_Text"><span style="color: #000000">{ <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        Graphics2D g2 </span><span style="color: #000000">=</span><span style="color: #000000"> (Graphics2D) gp; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        g2.setPaint(Color.black); </span><span style="color: #008000">//</span><span style="color: #008000"> 璁劇疆鎵撳嵃棰滆壊涓洪粦鑹?nbsp;</span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (page </span><span style="color: #000000">>=</span><span style="color: #000000"> PAGES) </span><span style="color: #008000">//</span><span style="color: #008000"> 褰撴墦鍗伴〉鍙峰ぇ浜庨渶瑕佹墦鍗扮殑鎬婚〉鏁版椂錛屾墦鍗板伐浣滅粨鏉?nbsp;</span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">            </span><span style="color: #0000ff">return</span><span style="color: #000000"> Printable.NO_SUCH_PAGE; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        g2.translate(pf.getImageableX(), pf.getImageableY());</span><span style="color: #008000">//</span><span style="color: #008000"> 杞崲鍧愭爣錛岀‘瀹氭墦鍗拌竟鐣?nbsp;</span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        Font font </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Font(</span><span style="color: #000000">"</span><span style="color: #000000">瀹嬩綋</span><span style="color: #000000">"</span><span style="color: #000000">, Font.PLAIN, </span><span style="color: #000000">24</span><span style="color: #000000">);</span><span style="color: #008000">//</span><span style="color: #008000"> 鍒涘緩瀛椾綋 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        g2.setFont(font); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #008000">//</span><span style="color: #008000"> 鎵撳嵃褰撳墠欏墊枃鏈?nbsp;</span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">int</span><span style="color: #000000"> printFontCount </span><span style="color: #000000">=</span><span style="color: #000000"> printStr.length();</span><span style="color: #008000">//</span><span style="color: #008000"> 鎵撳嵃瀛楁暟 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">int</span><span style="color: #000000"> printFontSize </span><span style="color: #000000">=</span><span style="color: #000000"> font.getSize();</span><span style="color: #008000">//</span><span style="color: #008000"> Font 鐨勭鍊煎ぇ灝?nbsp;</span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">float</span><span style="color: #000000"> printX </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">595</span><span style="color: #000000"> </span><span style="color: #000000">/</span><span style="color: #000000"> </span><span style="color: #000000">2</span><span style="color: #000000">; </span><span style="color: #008000">//</span><span style="color: #008000"> 緇欏畾瀛楃鐐歸樀錛孹欏甸潰姝d腑 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">float</span><span style="color: #000000"> printY </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">842</span><span style="color: #000000"> </span><span style="color: #000000">/</span><span style="color: #000000"> </span><span style="color: #000000">2</span><span style="color: #000000">; </span><span style="color: #008000">//</span><span style="color: #008000"> 緇欏畾瀛楃鐐歸樀錛孻欏甸潰姝d腑 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">float</span><span style="color: #000000"> printMX </span><span style="color: #000000">=</span><span style="color: #000000"> printX </span><span style="color: #000000">-</span><span style="color: #000000"> (printFontCount </span><span style="color: #000000">*</span><span style="color: #000000"> printFontSize </span><span style="color: #000000">/</span><span style="color: #000000"> </span><span style="color: #000000">2</span><span style="color: #000000">);</span><span style="color: #008000">//</span><span style="color: #008000"> 鎵撳嵃鍒版涓棿 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">float</span><span style="color: #000000"> printMY </span><span style="color: #000000">=</span><span style="color: #000000"> printY </span><span style="color: #000000">-</span><span style="color: #000000"> printFontSize </span><span style="color: #000000">/</span><span style="color: #000000"> </span><span style="color: #000000">2</span><span style="color: #000000">;</span><span style="color: #008000">//</span><span style="color: #008000"> 鎵撳嵃鍒版涓棿 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        g2.drawString(printStr, printMX, printMY); </span><span style="color: #008000">//</span><span style="color: #008000"> 鍏蜂綋鎵撳嵃姣忎竴琛屾枃鏈紝鍚屾椂璧扮焊縐諱綅 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        g2.drawString(printStr, printMX </span><span style="color: #000000">-</span><span style="color: #000000"> printFontSize </span><span style="color: #000000">*</span><span style="color: #000000"> printFontCount, <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                printMY </span><span style="color: #000000">+</span><span style="color: #000000"> printFontSize); </span><span style="color: #008000">//</span><span style="color: #008000"> 鍏蜂綋鎵撳嵃姣忎竴琛屾枃鏈紝鍚屾椂璧扮焊縐諱綅 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        g2.drawString(printStr, printMX </span><span style="color: #000000">+</span><span style="color: #000000"> printFontSize </span><span style="color: #000000">*</span><span style="color: #000000"> printFontCount, <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                printMY </span><span style="color: #000000">+</span><span style="color: #000000"> printFontSize); </span><span style="color: #008000">//</span><span style="color: #008000"> 鍏蜂綋鎵撳嵃姣忎竴琛屾枃鏈紝鍚屾椂璧扮焊縐諱綅 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        g2.drawString(printStr, printMX, printMY </span><span style="color: #000000">+</span><span style="color: #000000"> printFontSize </span><span style="color: #000000">*</span><span style="color: #000000"> </span><span style="color: #000000">2</span><span style="color: #000000">); </span><span style="color: #008000">//</span><span style="color: #008000"> 鍏蜂綋鎵撳嵃姣忎竴琛屾枃鏈紝鍚屾椂璧扮焊縐諱綅 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">return</span><span style="color: #000000"> Printable.PAGE_EXISTS; </span><span style="color: #008000">//</span><span style="color: #008000"> 瀛樺湪鎵撳嵃欏墊椂錛岀戶緇墦鍗板伐浣?nbsp;</span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" /></span><span style="color: #000000">    }</span></span><span style="color: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    </span><span style="color: #008000">//</span><span style="color: #008000"> 鎵撳嵃鍐呭鍒版寚瀹氫綅緗?nbsp;</span><span style="color: #008000"><br /> <img id="Codehighlighter1_2420_3739_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2420_3739_Open_Text.style.display='none'; Codehighlighter1_2420_3739_Closed_Image.style.display='inline'; Codehighlighter1_2420_3739_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_2420_3739_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_2420_3739_Closed_Text.style.display='none'; Codehighlighter1_2420_3739_Open_Image.style.display='inline'; Codehighlighter1_2420_3739_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span style="color: #000000">    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> printContent() </span><span id="Codehighlighter1_2420_3739_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_2420_3739_Open_Text"><span style="color: #000000">{ <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        printStr </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">鎵撳嵃嫻嬭瘯鍐呭</span><span style="color: #000000">"</span><span style="color: #000000">;</span><span style="color: #008000">//</span><span style="color: #008000"> 鑾峰彇闇瑕佹墦鍗扮殑鐩爣鏂囨湰 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (printStr </span><span style="color: #000000">!=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000"> </span><span style="color: #000000">&&</span><span style="color: #000000"> printStr.length() </span><span style="color: #000000">></span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">) </span><span style="color: #008000">//</span><span style="color: #008000"> 褰撴墦鍗板唴瀹逛笉涓虹┖鏃?nbsp;</span><span style="color: #008000"><br /> <img id="Codehighlighter1_2544_3449_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2544_3449_Open_Text.style.display='none'; Codehighlighter1_2544_3449_Closed_Image.style.display='inline'; Codehighlighter1_2544_3449_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_2544_3449_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_2544_3449_Closed_Text.style.display='none'; Codehighlighter1_2544_3449_Open_Image.style.display='inline'; Codehighlighter1_2544_3449_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span style="color: #000000">        </span><span id="Codehighlighter1_2544_3449_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_2544_3449_Open_Text"><span style="color: #000000">{ <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            PAGES </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000">; </span><span style="color: #008000">//</span><span style="color: #008000"> 鑾峰彇鎵撳嵃鎬婚〉鏁?nbsp;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000"> 鎸囧畾鎵撳嵃杈撳嚭鏍煎紡 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">            DocFlavor flavor </span><span style="color: #000000">=</span><span style="color: #000000"> DocFlavor.SERVICE_FORMATTED.PRINTABLE; <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000"> 瀹氫綅榛樿鐨勬墦鍗版湇鍔?nbsp;</span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">            PrintService printService </span><span style="color: #000000">=</span><span style="color: #000000"> PrintServiceLookup <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    .lookupDefaultPrintService(); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000"> 鍒涘緩鎵撳嵃浣滀笟 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">            DocPrintJob job </span><span style="color: #000000">=</span><span style="color: #000000"> printService.createPrintJob(); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000"> 璁劇疆鎵撳嵃灞炴?nbsp;</span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">            PrintRequestAttributeSet pras </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> HashPrintRequestAttributeSet(); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000"> 璁劇疆綰稿紶澶у皬,涔熷彲浠ユ柊寤篗ediaSize綾繪潵鑷畾涔夊ぇ灝?nbsp;</span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">            pras.add(MediaSizeName.ISO_A4); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            DocAttributeSet das </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> HashDocAttributeSet(); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000"> 鎸囧畾鎵撳嵃鍐呭 </span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">            Doc doc </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> SimpleDoc(</span><span style="color: #0000ff">this</span><span style="color: #000000">, flavor, das); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000"> 涓嶆樉紺烘墦鍗板璇濇錛岀洿鎺ヨ繘琛屾墦鍗板伐浣?nbsp;</span><span style="color: #008000"><br /> <img id="Codehighlighter1_3286_3356_Open_Image" onclick="this.style.display='none'; Codehighlighter1_3286_3356_Open_Text.style.display='none'; Codehighlighter1_3286_3356_Closed_Image.style.display='inline'; Codehighlighter1_3286_3356_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_3286_3356_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_3286_3356_Closed_Text.style.display='none'; Codehighlighter1_3286_3356_Open_Image.style.display='inline'; Codehighlighter1_3286_3356_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span style="color: #000000">            </span><span style="color: #0000ff">try</span><span style="color: #000000"> </span><span id="Codehighlighter1_3286_3356_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_3286_3356_Open_Text"><span style="color: #000000">{ <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                job.print(doc, pras); </span><span style="color: #008000">//</span><span style="color: #008000"> 榪涜姣忎竴欏電殑鍏蜂綋鎵撳嵃鎿嶄綔 </span><span style="color: #008000"><br /> <img id="Codehighlighter1_3384_3438_Open_Image" onclick="this.style.display='none'; Codehighlighter1_3384_3438_Open_Text.style.display='none'; Codehighlighter1_3384_3438_Closed_Image.style.display='inline'; Codehighlighter1_3384_3438_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_3384_3438_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_3384_3438_Closed_Text.style.display='none'; Codehighlighter1_3384_3438_Open_Image.style.display='inline'; Codehighlighter1_3384_3438_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" /></span><span style="color: #000000">            }</span></span><span style="color: #000000"> </span><span style="color: #0000ff">catch</span><span style="color: #000000"> (PrintException pe) </span><span id="Codehighlighter1_3384_3438_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_3384_3438_Open_Text"><span style="color: #000000">{ <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                pe.printStackTrace(); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />            }</span></span><span style="color: #000000"> <br /> <img id="Codehighlighter1_3456_3732_Open_Image" onclick="this.style.display='none'; Codehighlighter1_3456_3732_Open_Text.style.display='none'; Codehighlighter1_3456_3732_Closed_Image.style.display='inline'; Codehighlighter1_3456_3732_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_3456_3732_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_3456_3732_Closed_Text.style.display='none'; Codehighlighter1_3456_3732_Open_Image.style.display='inline'; Codehighlighter1_3456_3732_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        }</span></span><span style="color: #000000"> </span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span id="Codehighlighter1_3456_3732_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_3456_3732_Open_Text"><span style="color: #000000">{ <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000"> 濡傛灉鎵撳嵃鍐呭涓虹┖鏃訛紝鎻愮ず鐢ㄦ埛鎵撳嵃灝嗗彇娑?nbsp;</span><span style="color: #008000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">            JOptionPane.showConfirmDialog(</span><span style="color: #0000ff">null</span><span style="color: #000000">, <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    </span><span style="color: #000000">"</span><span style="color: #000000">Sorry, Printer Job is Empty, Print Cancelled!</span><span style="color: #000000">"</span><span style="color: #000000">, <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    </span><span style="color: #000000">"</span><span style="color: #000000">Empty</span><span style="color: #000000">"</span><span style="color: #000000">, JOptionPane.DEFAULT_OPTION, <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    JOptionPane.WARNING_MESSAGE); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img id="Codehighlighter1_3786_3866_Open_Image" onclick="this.style.display='none'; Codehighlighter1_3786_3866_Open_Text.style.display='none'; Codehighlighter1_3786_3866_Closed_Image.style.display='inline'; Codehighlighter1_3786_3866_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_3786_3866_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_3786_3866_Closed_Text.style.display='none'; Codehighlighter1_3786_3866_Open_Image.style.display='inline'; Codehighlighter1_3786_3866_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> main(String[] args) </span><span id="Codehighlighter1_3786_3866_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_3786_3866_Open_Text"><span style="color: #000000">{ <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        LocatePrint lp </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> LocatePrint(); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        lp.printContent(); <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"> </span></div> <img src ="http://www.tkk7.com/aoneany/aggbug/287601.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2009-07-21 11:25 <a href="http://www.tkk7.com/aoneany/articles/287601.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏈綆鍗曠殑web鏈嶅姟鍣ㄤ唬鐮?Java)http://www.tkk7.com/aoneany/articles/283248.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Fri, 19 Jun 2009 08:36:00 GMThttp://www.tkk7.com/aoneany/articles/283248.htmlhttp://www.tkk7.com/aoneany/comments/283248.htmlhttp://www.tkk7.com/aoneany/articles/283248.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/283248.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/283248.html闃呰鍏ㄦ枃

]]>
緗戜笂鐪嬪埌Jtable涓璻evalidate鐨勮娉?/title><link>http://www.tkk7.com/aoneany/articles/268577.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Fri, 01 May 2009 17:18:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/268577.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/268577.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/268577.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/268577.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/268577.html</trackback:ping><description><![CDATA[<p><span style="font-size: 10pt">闂錛氬湪鎵捐祫鏂欑殑鏃跺欑湅瑙丣Tabel鐢ㄤ簡setModel鏂規硶鍚庝細鍔犱笂涓涓猺evalidate鏂規硶錛?br /> 鍙垜鍒犱簡榪欎釜鏂規硶騫舵病瑙佹湁浠涔堜笉鍚岋紝璇鋒寚鐐癸紒</span></p> <p><span style="font-size: 10pt">鍥炵瓟涓:濡傛灉鍦╝pplication涓婃湁鍝釜component鐢變簬浜嬩歡鐨勮Е鍙戣屽彂鐢熷彉鍖栵紙姣斿錛屽艦鐘訛級鐨勮瘽錛岃繖涓柟娉曞氨鏄敤鏉ユ洿鏂板綋鍓嶇▼搴忕殑鐣岄潰鐢ㄧ殑錛屽氨鐩稿綋浜庨噸鐢諱竴涓嬬晫闈?</span></p> <p><span style="font-size: 10pt">鍥炵瓟浜?The original author comments, very clear:</span></p> <div class="ui2ykak" id="quote"><br /> <span style="font-size: 10pt">I added a revalidate to JTable in the case that the table structure<br /> changes (columns/rows added/removed). This is necessary, since such an<br /> operation changes the size parameters of the JTable. It makes JTable<br /> behave more nicely in JScrollPane in an app I have here.</span></div><img src ="http://www.tkk7.com/aoneany/aggbug/268577.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2009-05-02 01:18 <a href="http://www.tkk7.com/aoneany/articles/268577.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JSpinner鎺у埗杈撳叆http://www.tkk7.com/aoneany/articles/260124.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Mon, 16 Mar 2009 14:40:00 GMThttp://www.tkk7.com/aoneany/articles/260124.htmlhttp://www.tkk7.com/aoneany/comments/260124.htmlhttp://www.tkk7.com/aoneany/articles/260124.html#Feedback2http://www.tkk7.com/aoneany/comments/commentRss/260124.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/260124.html鏈榪戠敤鍒癑Spinner錛屼絾鏄笉鑳芥帶鍒剁敤鎴瘋緭鍏ャ?br /> 姣斿浣跨敤SpinnerNumberModel錛岃櫧鐒惰緗簡min錛宮ax錛屼絾鏄繕鏄彲浠ヨ緭鍏ヨ秴鍑鴻寖鍥寸殑鏁板鹼紝榪樺彲浠ヨ緭鍏ュ瓧姣嶏紝榪欎簺閮藉簲璇ユ槸灞忚斀鎺夌殑銆?br /> 閲囩敤浜嗕笅闈㈢殑鏂規硶鏉ヨВ鍐籌細

   JSpinner spinner = new JSpinner(new SpinnerNumberModel(value, min, max, 1));
   spinner.setBounds(x,y,width,height);
   // 鎺у埗杈撳叆
   JSpinner.NumberEditor editor = new JSpinner.NumberEditor(spinner, "0");
   spinner.setEditor(editor);
   JFormattedTextField textField = ((JSpinner.NumberEditor) spinner.getEditor())
     .getTextField();
   textField.setEditable(true);
   DefaultFormatterFactory factory = (DefaultFormatterFactory) textField
     .getFormatterFactory();
   NumberFormatter formatter = (NumberFormatter) factory.getDefaultFormatter();
   formatter.setAllowsInvalid(false);
   add(spinner);
 
榪欐牱杈撳叆灝變笉鍙互杈撳叆瀛楁瘝浜嗭紝鍥犱負璁劇疆浜嗚緭鍏ユ牸寮忋傝秴榪囪寖鍥寸殑鏁板間篃鏄緭鍏ヤ笉榪涘幓鐨勩?br /> 鍏朵粬鐨勬牸寮忛兘搴旇鏄被浼肩殑鍚э紝鍛靛懙銆?br /> 鍙笉榪囪繖閲岀敤鐨勬槸NumberFormatter 錛岃繕鏈夊叾浠栫被鍨嬬殑銆?/p>

 

杞澆錛?a >http://yangke1120.spaces.live.com/blog/cns!77b62010246eabc6!168.entry



]]>
闀挎暣鍨嬫暟瀛楁牸寮忚漿鎹?/title><link>http://www.tkk7.com/aoneany/articles/251915.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Mon, 19 Jan 2009 08:42:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/251915.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/251915.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/251915.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/251915.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/251915.html</trackback:ping><description><![CDATA[<p><span style="font-size: 12pt"><span style="font-size: 8pt">鎴戜粠鏁版嵁搴撲腑鍙栧嚭涓涓暟鎹紙鏁版嵁搴撲腑瀛愭綾誨瀷鏄痭umber錛?1449579錛屼絾鏄垜鍙栧嚭鏉ヨ鏄劇ず鍦╦sp鐣岄潰涓婃槸4.1449579E7錛岀敤浠涔堟柟娉曞彲浠ヨ漿鎹㈡垚41449579鏄劇ず鍑烘潵鍟婏紵錛堣漿鎹㈡垚String鏍煎紡鍙互,鍙鑳芥樉紺哄嚭鏉ュ氨鍙互錛夛紝姹傚ぇ瀹跺府蹇欙紒 </span></span></p> <p><span style="color: #ff6600"><br /> <span style="font-size: 12pt"><span style="font-size: 8pt">濡傛灉鏄氳繃JDBC鐨勮瘽錛屽湪璇誨彇璇ュ瓧孌墊椂鐢╣etLong()鏉ヨ鍙栵紝鎴栬呯敤getObject()鐒跺悗璋冪敤鍏秚oString()鍑芥暟鍗沖彲銆?nbsp;  <br /> 濡傛灉鏄敤Hibernate鐨勮瘽錛屽湪鏄犲皠鏂囦歡涓皢璇ュ瓧孌墊槧灝勬垚Long鎴朓nteger鍗沖彲銆?/span></span></span></p> <p><span style="font-size: 12pt"><span style="font-size: 8pt; color: #ff00ff">new   java.text.DecimalFormat("########").format(12345678)</span></span></p> <p> </p> <img src ="http://www.tkk7.com/aoneany/aggbug/251915.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2009-01-19 16:42 <a href="http://www.tkk7.com/aoneany/articles/251915.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>POI閿欒鈥淯nknown Ptg in Formula鈥濊В鍐沖姙娉?/title><link>http://www.tkk7.com/aoneany/articles/250180.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Tue, 06 Jan 2009 13:36:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/250180.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/250180.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/250180.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/250180.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/250180.html</trackback:ping><description><![CDATA[姝ら敊璇嚭鐜扮殑鍘熷洜鏄疎xcel涓湁涓枃瀹氫箟鐨勫悕縐版垨鑰呭叕寮? <p>灝咵xcel涓畾涔夌殑鍚嶇О鏀逛負English灝卞彲浠ヤ簡</p> <img src ="http://www.tkk7.com/aoneany/aggbug/250180.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2009-01-06 21:36 <a href="http://www.tkk7.com/aoneany/articles/250180.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JSpinner鐨勬暟鎹〃紺烘柟娉?http://www.tkk7.com/aoneany/articles/244913.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Sun, 07 Dec 2008 15:07:00 GMThttp://www.tkk7.com/aoneany/articles/244913.htmlhttp://www.tkk7.com/aoneany/comments/244913.htmlhttp://www.tkk7.com/aoneany/articles/244913.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/244913.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/244913.html        鐢變簬欏圭洰闇瑕佷互鐣岄潰鐨勫艦寮忚〃紺哄甫鏈夊皬鏁扮偣鐨勬暟鎹紝鑰屼笖璁╃敤鎴峰彲浠ヨ緭鍏ユ暟鎹屼笉澶辯簿搴︺傚紑濮嬪茍娌℃湁閲嶈瀹冿紝浠ヤ負鍙鎶婇渶瑕佸~鍏Spinner鐨勬暟鎹牸寮忓寲灝卞彲浠ャ備簨瀹炰笉鏄繖鏍鳳紝緇撴灉JSpinner鑳藉姝g‘鏄劇ず鏁版嵁錛屼絾鏄綋璋冩暣鏁版嵁鏃剁簿搴﹀氨鍙戠敓浜嗛敊璇紝鎬庝箞鍔炲憿錛熷埌緗戜笂鎵炬壘錛屾壘鍒扮殑閮芥槸鏁版嵁鏍煎紡鍖栫殑鏂規錛屽鎴戞病鏈夌敤錛屼篃鎵句簡涓浜涗功綾嶏紝鐢變簬JSpinner鍙槸涓涓皬灝忕殑緇勪歡錛屾病鏈夊緢璇︾粏鐨勪粙緇嶏紝鐪嬫牱瀛愶紝鎯崇畝鍗曞湴渚濋潬鍒漢鐨勫府鍔╂枃妗f槸涓嶈浜嗭紝闇瑕佺湅鐪婮Spinner鐨勬簮浠g爜浜嗐傘傘傘傘?br />         榪涘叆JSpinner鐨勬簮浠g爜錛屼粩緇嗗垎鏋愪簡浠栫殑緇勬垚緇撴瀯錛屽彂鐜癑Spinner鏄劇ず涓嶅悓鐨勫唴瀹癸紝閲囩敤涓嶅悓鐨勬ā鍨嬶紝鍍廠pinnerDateModel錛孲pinnerListModel錛孲pinnerNumberModel銆備簬鏄垜鎯沖彧瑕佸妯″瀷淇敼涓嶅氨琛屽悧錛熸渶緇堟垜瑙e喅浜嗕笅闈㈡槸綆鍗曠殑浠g爜
            JSpinner spiner = new JSpinner();
            int max ,min;//鏁版嵁鐨勬渶澶ф渶灝忓皬鏁扮偣浣嶆暟
            DecimalFormat format = ((JSpinner.NumberEditor) spiner.getEditor()).getFormat();
            format.setMaximumFractionDigits(max);
            format.setMinimumFractionDigits(min);
浠庝笂闈唬鐮佺湅鏉ラ潪甯哥畝鍗曪紝浣嗘槸浠栫‘鑺辮垂浜嗘垜鍑犱釜灝忔椂錛屽笇鏈涜兘緇欐湁鍚屾牱闂鐨勪漢浠湁鎵甯姪銆傛渶鍚庤繕瑕佹劅璋㈤」鐩粍鍙﹀涓浣嶅悓浜嬬殑甯姪銆?/p>

杞嚜:http://www.tkk7.com/hclown/articles/24383.html



]]>
Wrong type at constant pool index 寮傚父http://www.tkk7.com/aoneany/articles/243990.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Tue, 02 Dec 2008 10:32:00 GMThttp://www.tkk7.com/aoneany/articles/243990.htmlhttp://www.tkk7.com/aoneany/comments/243990.htmlhttp://www.tkk7.com/aoneany/articles/243990.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/243990.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/243990.html閲嶈浜嗘満鍣ㄥ拰myeclipse錛岄厤緗笂浠ュ墠鐨勯」鐩紝鍚姩myeclipse緙栬瘧錛屼絾鏄嵈鍑虹幇濡備笅寮傚父

涓ラ噸: Exception starting filter struts2
java.lang.IllegalArgumentException: Wrong type at constant pool index
 at sun.reflect.ConstantPool.getClassAt0(Native Method)
 at sun.reflect.ConstantPool.getClassAt(Unknown Source)
 at sun.reflect.annotation.AnnotationParser.parseAnnotation(Unknown Source)
 at sun.reflect.annotation.AnnotationParser.parseAnnotations(Unknown Source)
 at java.lang.reflect.Method.declaredAnnotations(Unknown Source)
 at java.lang.reflect.Method.getAnnotation(Unknown Source)
 at java.lang.reflect.AccessibleObject.isAnnotationPresent(Unknown Source)
 at org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:161)
 at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
 at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
 at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
 at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:516)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

鎴戞妸Myeclipse涓璽omcat涓婮DK閰嶇疆鏀逛負jre6鐨勭増鏈紝緙栬瘧榪愯灝辨病鏈夊嚭寮傚父浜嗭紝浣嗘槸璁板緱浠ュ墠涔熸槸浣跨敤鐨?.5鐗堟湰鐨勶紝浣嗘槸灝辨病鏈夊嚭鐜拌繖縐嶅紓甯革紝鐜板湪鎬庝箞鍙堝嚭鐜頒簡錛屽悓鏍風殑JDK?
瑕丣DK1.5.0.0鍗囩駭鎴?.5.0.11浠ヤ笂鐨勭増灝卞彲浠ヤ簡

]]>
URL涓枃鍙傛暟鍊間貢鐮侀棶棰樿В鍐?/title><link>http://www.tkk7.com/aoneany/articles/242211.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Mon, 24 Nov 2008 02:35:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/242211.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/242211.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/242211.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/242211.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/242211.html</trackback:ping><description><![CDATA[       <span style="font-family: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鏈榪戝湪鍋?/span><span lang="EN-US">Infoportal</span><span style="font-family: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">闆嗘垚</span><span lang="EN-US">URL</span><span style="font-family: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍦板潃閬囧埌涓涓皬灝忕殑闂錛屽湪</span><span lang="EN-US">URL</span><span style="font-family: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍦板潃涓婂鏋滃寘鍚湁涓枃鍙傛暟鏃訛紝鍦ㄦ祻瑙堝櫒鍦板潃涓婂氨浼氬嚭鐜頒貢鐮侊紝鎯沖埌浜嗗彲鑳介渶瑕佹妸</span><span lang="EN-US">URL</span><span style="font-family: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍙傛暟鍊艱漿鐮侊紝鍐欎簡涓孌典唬鐮佹祴璇曚竴涓嬨備絾鏄彂鐜版湁涓涓棶棰橈紝灝辨槸鐢?/span><span lang="EN-US">java</span><span style="font-family: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瀛楃涓蹭腑鐨?/span><span lang="EN-US">split</span><span style="font-family: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">褰撳垎鍓?#8220;錛?#8221;鏃訛紝鐩存帴鎶?/span><u><span lang="EN-US" style="font-size: 10pt; color: navy; font-family: 'Courier New'; mso-font-kerning: 0pt">java.util.regex.PatternSyntaxException</span></u><span lang="EN-US" style="font-size: 10pt; color: red; font-family: 'Courier New'; mso-font-kerning: 0pt">: Dangling meta character '?' near index 0</span><span style="font-family: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">寮傚父錛屽師鏉ヨ繖涓槸杞箟瀛楃錛岀◢寰慨鏀逛簡涓涓嬪氨濂戒簡</span> <p class="MsoNormal"><span style="font-family: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">紼嬪簭</span></p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">String url</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">http://servername?country=涓浗</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        String[] segment</span><span style="color: #000000">=</span><span style="color: #000000">url.split(</span><span style="color: #000000">"</span><span style="color: #000000">\\?</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        StringBuilder newUrl</span><span style="color: #000000">=</span><span style="color: #0000ff">new</span><span style="color: #000000"> StringBuilder();<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        newUrl.append(segment[</span><span style="color: #000000">0</span><span style="color: #000000">]</span><span style="color: #000000">+</span><span style="color: #000000">"</span><span style="color: #000000">?</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        String[] argStr</span><span style="color: #000000">=</span><span style="color: #000000">segment[</span><span style="color: #000000">1</span><span style="color: #000000">].split(</span><span style="color: #000000">"</span><span style="color: #000000">&</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img id="Codehighlighter1_234_584_Open_Image" onclick="this.style.display='none'; Codehighlighter1_234_584_Open_Text.style.display='none'; Codehighlighter1_234_584_Closed_Image.style.display='inline'; Codehighlighter1_234_584_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_234_584_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_234_584_Closed_Text.style.display='none'; Codehighlighter1_234_584_Open_Image.style.display='inline'; Codehighlighter1_234_584_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">for</span><span style="color: #000000">(</span><span style="color: #0000ff">int</span><span style="color: #000000"> i</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000">;i</span><span style="color: #000000"><</span><span style="color: #000000">argStr.length;i</span><span style="color: #000000">++</span><span style="color: #000000">)</span><span id="Codehighlighter1_234_584_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_234_584_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            String[] args</span><span style="color: #000000">=</span><span style="color: #000000"> argStr[i].split(</span><span style="color: #000000">"</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">if</span><span style="color: #000000">(args</span><span style="color: #000000">==</span><span style="color: #0000ff">null</span><span style="color: #000000"> </span><span style="color: #000000">||</span><span style="color: #000000">args.length</span><span style="color: #000000">==</span><span style="color: #000000">0</span><span style="color: #000000">)<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                </span><span style="color: #0000ff">continue</span><span style="color: #000000">;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            newUrl.append(args[</span><span style="color: #000000">0</span><span style="color: #000000">]);<br /> <img id="Codehighlighter1_372_557_Open_Image" onclick="this.style.display='none'; Codehighlighter1_372_557_Open_Text.style.display='none'; Codehighlighter1_372_557_Closed_Image.style.display='inline'; Codehighlighter1_372_557_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_372_557_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_372_557_Closed_Text.style.display='none'; Codehighlighter1_372_557_Open_Image.style.display='inline'; Codehighlighter1_372_557_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">if</span><span style="color: #000000">(args[</span><span style="color: #000000">1</span><span style="color: #000000">]</span><span style="color: #000000">!=</span><span style="color: #0000ff">null</span><span style="color: #000000">)</span><span id="Codehighlighter1_372_557_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_372_557_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_382_479_Open_Image" onclick="this.style.display='none'; Codehighlighter1_382_479_Open_Text.style.display='none'; Codehighlighter1_382_479_Closed_Image.style.display='inline'; Codehighlighter1_382_479_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_382_479_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_382_479_Closed_Text.style.display='none'; Codehighlighter1_382_479_Open_Image.style.display='inline'; Codehighlighter1_382_479_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />                </span><span style="color: #0000ff">try</span><span style="color: #000000"> </span><span id="Codehighlighter1_382_479_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_382_479_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    String argValue</span><span style="color: #000000">=</span><span style="color: #000000">URLEncoder.encode(args[</span><span style="color: #000000">1</span><span style="color: #000000">],</span><span style="color: #000000">"</span><span style="color: #000000">UTF-8</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    newUrl.append(</span><span style="color: #000000">"</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">argValue);<br /> <img id="Codehighlighter1_520_552_Open_Image" onclick="this.style.display='none'; Codehighlighter1_520_552_Open_Text.style.display='none'; Codehighlighter1_520_552_Closed_Image.style.display='inline'; Codehighlighter1_520_552_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_520_552_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_520_552_Closed_Text.style.display='none'; Codehighlighter1_520_552_Open_Image.style.display='inline'; Codehighlighter1_520_552_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />                }</span></span><span style="color: #000000"> </span><span style="color: #0000ff">catch</span><span style="color: #000000"> (UnsupportedEncodingException e) </span><span id="Codehighlighter1_520_552_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_520_552_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    e.printStackTrace();<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />                }</span></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />            }</span></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />            newUrl.append(</span><span style="color: #000000">"</span><span style="color: #000000">&</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        System.out.println(newUrl.toString());</span></div> <p>鍘烾RL錛?a href="http://servername?country">http://servername?country</a>=涓浗</p> <p>杞爜鍚庣殑URL錛歨ttp://servername?country=%E4%B8%AD%E5%9B%BD&</p> <img src ="http://www.tkk7.com/aoneany/aggbug/242211.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2008-11-24 10:35 <a href="http://www.tkk7.com/aoneany/articles/242211.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JAVA鍒ゆ柇鏄惁涓洪紶鏍囧彸閿?/title><link>http://www.tkk7.com/aoneany/articles/241967.html</link><dc:creator>娌欐紶涓殑楸?/dc:creator><author>娌欐紶涓殑楸?/author><pubDate>Sat, 22 Nov 2008 07:35:00 GMT</pubDate><guid>http://www.tkk7.com/aoneany/articles/241967.html</guid><wfw:comment>http://www.tkk7.com/aoneany/comments/241967.html</wfw:comment><comments>http://www.tkk7.com/aoneany/articles/241967.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/aoneany/comments/commentRss/241967.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/aoneany/services/trackbacks/241967.html</trackback:ping><description><![CDATA[e.getClickCount()==1&&SwingUtilities.isRightMouseButton(e) <img src ="http://www.tkk7.com/aoneany/aggbug/241967.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/aoneany/" target="_blank">娌欐紶涓殑楸?/a> 2008-11-22 15:35 <a href="http://www.tkk7.com/aoneany/articles/241967.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>瀹炵幇鍜宩dk\bin\native2ascii.exe 鍚屾牱鐨勫姛鑳?http://www.tkk7.com/aoneany/articles/241855.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Fri, 21 Nov 2008 07:24:00 GMThttp://www.tkk7.com/aoneany/articles/241855.htmlhttp://www.tkk7.com/aoneany/comments/241855.htmlhttp://www.tkk7.com/aoneany/articles/241855.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/241855.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/241855.htmlprivate String convertAscii(String str){
        String tmp;
        StringBuffer sb 
= new StringBuffer(1000);
        
char c;
        
int i, j;
        sb.setLength(
0);
        
for(i = 0;i<str.length();i++){
            c 
= str.charAt(i);
            
if (c > 255{
                sb.append(
"\\u");
                j 
= (c >>> 8);
                tmp 
= Integer.toHexString(j);
                
if (tmp.length() == 1) sb.append("0");
                sb.append(tmp);
                j 
= (c & 0xFF);
                tmp 
= Integer.toHexString(j);
                
if (tmp.length() == 1) sb.append("0");
                sb.append(tmp);
            }

            
else {
                sb.append(c);
            }


        }

        
return(new String(sb));
    }
 


]]>
浠ョ紪紼嬫柟寮忚皟鐢?Apache Anthttp://www.tkk7.com/aoneany/articles/236923.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Mon, 27 Oct 2008 09:52:00 GMThttp://www.tkk7.com/aoneany/articles/236923.htmlhttp://www.tkk7.com/aoneany/comments/236923.htmlhttp://www.tkk7.com/aoneany/articles/236923.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/236923.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/236923.htmlhttp://www.ibm.com/developerworks/cn/websphere/library/techarticles/0502_gawor/0502_gawor.html

File buildFile = new File("build.xml");
Project p = new Project();
DefaultLogger consoleLogger = new DefaultLogger();
consoleLogger.setErrorPrintStream(System.err);
consoleLogger.setOutputPrintStream(System.out);
consoleLogger.setMessageOutputLevel(Project.MSG_INFO);
p.addBuildListener(consoleLogger);
try {
p.fireBuildStarted();
p.init();
ProjectHelper helper = ProjectHelper.getProjectHelper();
helper.parse(p, buildFile);
p.executeTarget(p.getDefaultTarget());
p.fireBuildFinished(null);
} catch (BuildException e) {
p.fireBuildFinished(e);
}


]]>
鍒朵綔java紼嬪簭鍚姩鏂囦歡http://www.tkk7.com/aoneany/articles/227983.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Tue, 09 Sep 2008 08:32:00 GMThttp://www.tkk7.com/aoneany/articles/227983.htmlhttp://www.tkk7.com/aoneany/comments/227983.htmlhttp://www.tkk7.com/aoneany/articles/227983.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/227983.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/227983.html start .\jre\bin\javaw --鎶妀re鍖呮斁鍦ㄥ綋鍓嶇洰褰曚笅
 -classpath .\bin; .\lib\commons-logging.jar  --鎵ц鐨勭被鍜屽寘鍜?br /> -Djava.library.path=.\lib\ --綾誨簱璺緞
main --Main綾?br /> 瀹屾暣鐨刡at鏂囦歡錛屼腑闂寸敤絀烘牸鏉ユ牸寮
@echo off
start .\jre\bin\javaw -classpath .\bin;.\lib\commons-logging.jar;.\lib\dom4j-1.6.1.jar -Djava.library.path=.\lib\ fecat.applicationcenter.FEcatApplication



]]>
鍦↗avaMDI紿楀彛涓姞鍏ユ粴鍔ㄦ潯http://www.tkk7.com/aoneany/articles/227467.html娌欐紶涓殑楸?/dc:creator>娌欐紶涓殑楸?/author>Sat, 06 Sep 2008 17:14:00 GMThttp://www.tkk7.com/aoneany/articles/227467.htmlhttp://www.tkk7.com/aoneany/comments/227467.htmlhttp://www.tkk7.com/aoneany/articles/227467.html#Feedback0http://www.tkk7.com/aoneany/comments/commentRss/227467.htmlhttp://www.tkk7.com/aoneany/services/trackbacks/227467.htmlJava璁捐MDI紿楀彛錛岃鐢ㄥ埌JDesktopPane綾誨拰JInternalFrame綾伙紝鍏跺簲鐢ㄥ彲浠ョ湅jdk鑷甫鐨刴etaworks鐨勪緥瀛愩備絾鐢ㄥ畠瀹炵幇鐨凪DI紿楀彛鍦ㄥ瓙紿楀彛縐誨嚭鐖剁獥鍙f椂錛屾病鏈夋粴鍔ㄦ潯錛屼負姝ゅ繀鍊熷姪浜嶫ScrollPane鎵嶈錛屽涓嬶細

        JDesktopPane desktop = new JDesktopPane ();
.
        JScrollPane scrollpane = new JScrollPane(desktop,
                JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        getContentPane().add(scrollpane);

浣嗘槸涓榪愯錛屼絾鍐呴儴紿楀彛縐誨嚭鍒拌竟鐣屽杈規椂錛屾垜浠鎯充腑鐨勬粴鍔ㄦ潯騫舵病鏈夊嚭鐜幫紝鎬庝箞鍔烇紵鍘熸潵錛孞DesktopPane 鍔犲埌JScrollPane鍚庡叾澶у皬灝卞彧鏄疛ScrollPane鐨剉iewport鐨勫ぇ灝忥紝鎵浠ユ粴鍔ㄦ潯騫舵病鏈夊嚭鐜般傛墍浠ユ垜浠鎯沖姙娉曡JDesktopPane 鐨刅iewport鐨勫ぇ灝忚窡闅忓唴閮ㄧ獥鍙g殑浣嶇疆鑰屾敼鍙樺ぇ灝忥紝緇ф壙涓涓狫DesktopPane 鍚э細

/**
 * @author Turbo Chen
 * @version 1.01
 */
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class JDesktop extends JDesktopPane{
    public void paint(Graphics g){
        super.paint(g);
        Dimension d = preferredSizeOfAllFrames();
        this.setPreferredSize(d);
        this.revalidate();
    }

  /**
   * @return 榪斿洖鏈浣砫esktop灝哄..
   */
    public Dimension preferredSizeOfAllFrames(){
        JInternalFrame [] array = getAllFrames();
        int maxX = 0;
        int maxY = 0;
        for (int i = 0; i < array.length; i++){
            if ( array[ i ].isVisible() ){
                int cx;
                cx = array[i].getX();
                int x = cx + array[i].getWidth();
                if (x > maxX) maxX = x;
                int cy;
                cy = array[i].getY();
                int y = cy + array[i].getHeight();
                if (y > maxY) maxY = y;
            }
        }
        return new Dimension(maxX, maxY);
    }
}
鍏抽敭鏄痯referredSizeOfAllFrames錛堬級鏂規硶錛屽瓙紿楀彛縐誨姩鏃墮犳垚JDesktop鐨勫埛鏂幫紝瀹冭皟鐢╬referredSizeOfAllFrames錛堬級鏂規硶閲嶆柊璁$畻鏈浣矹Desktop鐨勫ぇ灝忥紝騫墮氳繃revalidate()鏂規硶鏉ラ氱煡瀹冪殑涓婂眰瀹瑰櫒鍗矹ScrollPane錛孞ScrollPane浼氭牴鎹甁Desktop鐨勫ぇ灝忔潵璋冩暣鑷韓Viewport鐨勫ぇ灝忥紝褰揤iewport鐨勫ぇ灝忚秴鍑哄彲瑙嗚寖鍥達紝JScrollPane灝卞嚭鐜版粴鍔ㄦ潯浜?

鍦ㄤ綘鐨勭▼搴忎腑錛屽彧瑕佺敤榪欎釜鏂扮殑JDesktop綾伙紝灝卞彲浠ュ湪MDI紿楀彛涓疄鐜版粴鍔ㄦ潯浜?/p>

 



]]>
主站蜘蛛池模板: 亚洲国产高清美女在线观看| 国产大片线上免费观看| 人妖系列免费网站观看| 狼人大香伊蕉国产WWW亚洲| 亚洲av综合av一区二区三区| 亚洲日韩一区二区三区| 中文有码亚洲制服av片| 亚洲区日韩精品中文字幕| 亚洲日韩AV一区二区三区中文 | 亚洲免费综合色在线视频| 亚洲精品免费网站| 国产一精品一AV一免费孕妇| 在线播放高清国语自产拍免费| 香蕉视频在线观看免费国产婷婷| 日韩免费视频播放| 亚洲国产中文v高清在线观看| 国产亚洲精品高清在线| 亚洲AV无码乱码在线观看裸奔| 久久精品国产精品亚洲艾草网 | 亚洲国产成人VA在线观看| 亚洲国产成人精品91久久久| 国产成人综合亚洲AV第一页| 亚洲精品V欧洲精品V日韩精品| 久久久无码精品亚洲日韩蜜臀浪潮| 亚洲精品国产情侣av在线| 亚洲日韩精品无码专区加勒比☆| 激情小说亚洲图片| 成人妇女免费播放久久久| 毛片无码免费无码播放| 免费电视剧在线观看| 免费一级e一片在线播放| 亚洲小说区图片区另类春色| 337p日本欧洲亚洲大胆精品555588| 亚洲人成网国产最新在线| 美女黄色免费网站| 日韩免费视频一区二区| aa级一级天堂片免费观看| 免费一级e一片在线播放| 亚洲欧洲国产精品你懂的| 2020国产精品亚洲综合网| 人体大胆做受免费视频|