<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    java learnging

    一塊探討JAVA的奧妙吧
    posts - 34, comments - 27, trackbacks - 0, articles - 22

    2005年7月15日

    Version Eclipse 3.1

    1.性能

        a. 禁用緩存遠(yuǎn)程資源
           Window -> Preferences -> Internet -> Cache -> 選擇Disable Caching
           這樣在打開(kāi)web.xml等文件時(shí)就不會(huì) Loading xmlns 之類的信息了
       
        b. 禁用有效性驗(yàn)證
           Window -> Preferences -> Validation -> 選擇Deselect All
           可能有效性驗(yàn)證是個(gè)不錯(cuò)的功能,不過(guò)有時(shí)候需要花的時(shí)間太長(zhǎng),有點(diǎn)受不了,基本上也不怎么需要
        c. 禁用啟動(dòng)eclipse時(shí)自動(dòng)構(gòu)建
           Window -> Preferences -> Launching -> 不選擇 Build before launching

    2.個(gè)人嗜好

        a. 修改Ant Document Url
           Window -> Preferences -> Ant -> Document Url -> 選擇Ant Document目錄
           這樣要比eclipse默認(rèn)去apache的網(wǎng)站訪問(wèn)快多了
       
        b. 修改快捷鍵的設(shè)定
           Window -> Preferences -> General -> Keys -> 按自己的需要修改
           尤其是Content assist 這么一個(gè)好用的功能和我的輸入法沖突了,只有改了

        c. 修改java文件的source和output folder
           Window -> Preferences -> Java -> Build Path ->選擇 Folders,并設(shè)為src和classes
           這樣的項(xiàng)目文件目錄比較標(biāo)準(zhǔn),不過(guò)和maven的標(biāo)準(zhǔn)不太一樣哦

        d. 修改Mark Occerencs
           Window -> Preferences -> Java -> Editor -> Mark Occerencs -> 把Mark Occerencs置為disable
           這樣在選擇一個(gè)單詞的時(shí)候,與這個(gè)單詞“具有同樣含義”的單詞就不會(huì)同時(shí)加亮了

    posted @ 2005-08-17 17:38 bigseal 閱讀(1496) | 評(píng)論 (0)編輯 收藏

    Eclipse 3.0/3.1

    Subclipse releases for Eclipse 3.x are hosted at our update site. Add http://subclipse.tigris.org/update as an update site in Eclipse's update manager (which you can find in the Help menu).

    The update site itself can be downloaded and used as a local update site as well. Simply unzip the site archive, and add the path as a new "Local Site" in the Eclipse update manager. You can also host your own internal Subclipse update site by placing the site on your own HTTP server (be sure to update site.xml appropriately).

    We also provide instructions for installing Subclipse in Eclipse 3.x

    Eclipse 2.1.3

    Subclipse 0.9.3.3 is linked against Subversion 1.1.4. Binaries for Windows are included.

    Development for this version of Eclipse is no longer active. There are no new releases planned.

    Download the Eclipse 2.x version

    Note:如果把文件直接unzip到eclipse的安裝目下,在使用的時(shí)候會(huì)沒(méi)有授權(quán)文件文件之類的錯(cuò)誤。

    posted @ 2005-08-15 12:38 bigseal 閱讀(15304) | 評(píng)論 (0)編輯 收藏

    修改默認(rèn)字符集(default character set)
    在mysql的my.ini配置文件中設(shè)置,這樣在mysql啟動(dòng)后就會(huì)自動(dòng)加載
    例如:把默認(rèn)字符集設(shè)置為UTF-8

    default-character-set=utf8

    查看變量值:
    例如:查看字符集設(shè)置

    SHOW VARIABLES LIKE 'character_set_%';
    SHOW VARIABLES LIKE 
    'collation_%'

    設(shè)置變量值
    例如:設(shè)置字符集變量
     set  character_set_server  = utf8;
     
    set  character_set_system  = utf8;
     
    set  character_set_database  = utf8;
     
    set  character_set_client  = utf8;
     
    set   character_set_connection  = utf8;
     
    set  character_set_results = utf8;
     
     
    set collation_connection = utf8_general_ci;
     
    set collation_database = utf8_general_ci;
     
    set  collation_server = utf8_general_ci;

    posted @ 2005-07-25 17:38 bigseal 閱讀(1441) | 評(píng)論 (0)編輯 收藏

    java.util.*

    java.util.StringTokenizer
    作用: 根據(jù)標(biāo)記分割字符串
    例子:

    StringTokenizer st = new StringTokenizer("this is a test");
         
    while (st.hasMoreTokens()) {
             System.
    out.println(st.nextToken());
         }
    結(jié)果為:
         this
         is
         a
         test

    但是該類已經(jīng)不推薦使用了,如果要實(shí)現(xiàn)該功能可以通過(guò)String類的split方法或 java.util.regex package來(lái)代替。
         String[] result = "this is a test".split("\\s");
         
    for (int x=0; x<result.length; x++)
             System.
    out.println(result[x]);
    結(jié)果為:
         this
         is
         a
         test

    posted @ 2005-07-22 18:00 bigseal 閱讀(1300) | 評(píng)論 (0)編輯 收藏

    Container默認(rèn)布局管理

    Container       null
    Panel             FlowLayout
    Window        BorderLayout
    Dialog           BorderLayout 
    Frame           BorderLayout

    有幾個(gè)用于布局管理的類
    BorderLayout
    CardLayout
    FlowLayout
    GridLayout
    GridBaglayout

    BorderLayout水平擴(kuò)展南北構(gòu)件,使這些構(gòu)件的寬度達(dá)到所在容器的寬度,但根據(jù)構(gòu)件的首先高度調(diào)整它們的高度。東西構(gòu)件被垂直擴(kuò)展,并根據(jù)它們的首先寬度調(diào)整她們的寬度,中間構(gòu)件布滿剩下的空間。

    在使用GridBaglayout管理布局時(shí),需要通過(guò)GridBagConstraints來(lái)指定各構(gòu)件的約束條件,下面是GridBagConstraints的一些設(shè)置
    GridBagConstraints.anchor 構(gòu)件在顯示區(qū)中的位置
    GridBagConstraints.fill         構(gòu)件填充顯示區(qū)的方式
    GridBagConstraints.gridx/gridy  構(gòu)件左上角的網(wǎng)格單元
    GridBagConstraints.gridwidth/gridheigth 構(gòu)件顯示區(qū)的大小
    GridBagConstraints.weighx/weighy 構(gòu)件顯示區(qū)可以消耗多少額外的空間
    GridBagConstraints.insets 構(gòu)件的空白區(qū)
    GridBagConstraints.ipadx/ipady 構(gòu)件的內(nèi)部填充

    posted @ 2005-07-22 17:50 bigseal 閱讀(1632) | 評(píng)論 (0)編輯 收藏

    The UML2 project is an EMF-based implementation of the UML 2.0 metamodel for the Eclipse platform designed to support the development of modeling tools. Further objectives of the UML2 project are to provide a common XMI schema to facilitate interchange of semantic models, test cases as a means of validating the specification, and validation rules as a means of defining and enforcing levels of compliance. For more details see Getting Started with UML2

    posted @ 2005-07-15 14:06 bigseal 閱讀(1490) | 評(píng)論 (0)編輯 收藏

    主站蜘蛛池模板: 免费国产va在线观看| 亚洲爽爽一区二区三区| 久久久久亚洲精品天堂| 今天免费中文字幕视频| 国产中文在线亚洲精品官网| 香蕉视频在线观看免费| 亚洲国产精品激情在线观看| 一级毛片无遮挡免费全部| 亚洲免费一区二区| 成人自慰女黄网站免费大全| 国产亚洲美日韩AV中文字幕无码成人| WWW国产成人免费观看视频| 亚洲精品无码久久一线| xxxx日本在线播放免费不卡| 亚洲精品无码av人在线观看| 嫩草在线视频www免费观看| 久久精品国产亚洲av日韩 | 新最免费影视大全在线播放| 亚洲 国产 图片| 在线观看免费黄色网址| 老司机亚洲精品影院无码| 国产一卡2卡3卡4卡无卡免费视频| 亚洲深深色噜噜狠狠网站| 午夜国产大片免费观看| 国产精品小视频免费无限app| 亚洲成AV人片在线观看无码| 成人黄色免费网站| 亚洲AV无码AV男人的天堂不卡| 亚洲欧洲中文日韩av乱码| 99精品视频在线观看免费专区| 国产成+人+综合+亚洲专| 四虎影在线永久免费四虎地址8848aa| 国产成人高清精品免费观看| 亚洲色图黄色小说| 国产午夜无码视频免费网站 | 亚洲日本国产乱码va在线观看| 免费看韩国黄a片在线观看| 一级特黄色毛片免费看| 亚洲精品亚洲人成在线观看麻豆| 在线免费观看污网站| a在线视频免费观看|