<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

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


    網站導航:
     
    主站蜘蛛池模板: aa在线免费观看| 女人被弄到高潮的免费视频| 亚洲中文字幕久久无码| 亚洲人成色7777在线观看| 免费视频中文字幕| 18级成人毛片免费观看| sihu国产精品永久免费| 亚洲精品无码少妇30P| 亚洲男女一区二区三区| 亚洲国产精华液网站w| 亚洲熟妇少妇任你躁在线观看无码| 成年女人喷潮毛片免费播放| 97视频免费观看2区| 日韩电影免费在线观看网站| 免费视频精品一区二区| 久久亚洲精品成人无码| 一区二区亚洲精品精华液| 亚洲av日韩av综合| 亚洲短视频在线观看| 伊人久久综在合线亚洲2019| 国产亚洲精品a在线无码| 在线观看国产区亚洲一区成人| 亚洲国产成人a精品不卡在线| 国产老女人精品免费视频| 四虎成人免费观看在线网址| 国产无人区码卡二卡三卡免费 | 亚洲AV无码一区二区三区在线观看 | 91情侣在线精品国产免费| 四虎在线最新永久免费| 免费A级毛片无码视频| 无码囯产精品一区二区免费| 青青青国产手机频在线免费观看| 国产综合免费精品久久久| 中国在线观看免费的www| 最近更新免费中文字幕大全| 99久久免费国产特黄| 免费人成黄页在线观看日本| 性xxxx视频免费播放直播| 91精品国产免费久久国语麻豆| 亚洲视频免费在线播放| 动漫黄网站免费永久在线观看|