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

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

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

    隨筆-50  評論-55  文章-8  trackbacks-0
    ?在使用java默認的lokandfeel的 時候,要想讓JTree不同的行顯示行高,只需要cellRenderer的組件設置大小就可以了,而換作windowlookandfeel的時候,不僅要設置組件大小,對樹還要設置 setRowHeight(0);
    請看如下解釋:
    The tree component's row height property controls the height of every displayed node. If the row height is greater than 0, all rows will be given the specified height. However, if the rows can be of differing heights, it is necessary to set the row height to 0. With a 0 row height, all heights of all rows are computed individually.
        // Create tree
        JTree tree = new JTree();
        
        // All rows will be given 15 pixels of height
        tree.setRowHeight(15);
        
        // Have the row height for each row computed individually
        tree.setRowHeight(0);
        
        // If the row height is 0 and the height of a row has dynamically changed, it is necessary
        // to flush the internal cache of row heights. The following calls flush the internal cache.
        if (tree.getRowHeight() <= 0) {
            // Temporary change to non-zero height
            tree.setRowHeight(1);
        }
        tree.setRowHeight(0);
    以上解釋來自:http://www.javaref.cn/egs/javax.swing.tree/RowHeight.html

    ?Related Examples
    posted on 2007-11-26 10:28 蔣家狂潮 閱讀(557) 評論(0)  編輯  收藏 所屬分類: Swing

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 国产成人亚洲精品91专区高清| 国产精品极品美女免费观看| 羞羞视频免费网站在线看| 国产精品亚洲小说专区| 国产精品亚洲五月天高清| 国产产在线精品亚洲AAVV| 午夜亚洲乱码伦小说区69堂| 午夜在线亚洲男人午在线| 在线播放亚洲精品| 日亚毛片免费乱码不卡一区| 一道本不卡免费视频| www一区二区www免费| 三年片在线观看免费| 久久久久成人片免费观看蜜芽 | 亚洲精品综合一二三区在线 | 亚洲av无码天堂一区二区三区| 国产片免费福利片永久| 亚洲国产精品碰碰| 无码日韩人妻AV一区免费l| 亚洲国产精品久久久久网站| 亚洲国产av无码精品| 国产日韩精品无码区免费专区国产 | 免费一区二区三区| 8x成人永久免费视频| 成人AV免费网址在线观看| 精品国产免费观看| 亚洲XX00视频| 国产亚洲A∨片在线观看| 亚洲高清视频免费| 亚洲综合色一区二区三区| 美女羞羞喷液视频免费| 中文字幕不卡高清免费| 69影院毛片免费观看视频在线 | 无码中文字幕av免费放dvd| 亚洲a视频在线观看| 免费国产真实迷j在线观看| 亚洲天堂在线视频| 91视频免费网址| 色www永久免费网站| 香蕉视频免费在线| 国产成在线观看免费视频|