<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默認(rèn)的lokandfeel的 時(shí)候,要想讓JTree不同的行顯示行高,只需要cellRenderer的組件設(shè)置大小就可以了,而換作windowlookandfeel的時(shí)候,不僅要設(shè)置組件大小,對樹還要設(shè)置 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

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


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 曰批免费视频播放免费| 亚洲av午夜电影在线观看| 久久青草精品38国产免费| 亚洲天堂免费在线视频| 男人j进女人p免费视频| 亚洲免费在线观看| 少妇性饥渴无码A区免费 | 巨波霸乳在线永久免费视频| 久久久久亚洲Av无码专| 国产91色综合久久免费分享| 国产亚洲国产bv网站在线| 色www永久免费视频| 免费一级全黄少妇性色生活片| 亚洲美女在线国产| 美女被cao网站免费看在线看| 亚洲国产女人aaa毛片在线| 在线看免费观看AV深夜影院| 亚洲啪AV永久无码精品放毛片| 免费又黄又硬又爽大片| 精品国产污污免费网站入口在线| 亚洲av日韩av无码| 毛片A级毛片免费播放| 免费大片av手机看片| 久久精品国产亚洲AV果冻传媒| 久久国内免费视频| 青娱乐在线免费观看视频| 国产亚洲色婷婷久久99精品| 114一级毛片免费| 色欲aⅴ亚洲情无码AV| 亚洲精品成人片在线观看精品字幕| 最近中文字幕完整版免费高清| 亚洲精品无码av中文字幕| 怡红院亚洲怡红院首页| 黄色免费网站网址| 一区二区视频在线免费观看| 亚洲日本国产精华液| 亚洲精品偷拍视频免费观看 | 日本免费久久久久久久网站| 自拍日韩亚洲一区在线| 久久激情亚洲精品无码?V| 四虎在线成人免费网站|