<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 蔣家狂潮 閱讀(550) 評論(0)  編輯  收藏 所屬分類: Swing

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


    網站導航:
     
    主站蜘蛛池模板: 国产一二三四区乱码免费| 亚洲国产日韩a在线播放| 中文字幕亚洲无线码a| 亚洲日韩精品无码专区网址| 亚洲日本一区二区| 亚洲综合激情视频| 韩国亚洲伊人久久综合影院| 成人妇女免费播放久久久| 五月婷婷亚洲综合| 亚洲最大的成网4438| 精品视频免费在线| 最近免费中文在线视频| 国产视频精品免费| 亚洲AV无码专区电影在线观看| 国产91在线|亚洲| 久久久精品视频免费观看| 97在线线免费观看视频在线观看| 亚洲AV无码乱码精品国产| 亚洲视频免费在线播放| 久香草视频在线观看免费| 无码人妻久久一区二区三区免费丨| 久久亚洲最大成人网4438| 国产亚洲精品免费| 亚洲人成网站免费播放| 最近中文字幕大全中文字幕免费| 亚洲中文字幕无码专区| 亚洲av成人一区二区三区在线播放| **一级毛片免费完整视| 亚洲熟妇丰满xxxxx| 一二三四影视在线看片免费| 亚洲欧美日韩国产精品一区| 亚洲国产精品毛片av不卡在线 | 国产精品亚洲综合久久 | 国产片AV片永久免费观看| 亚洲VA中文字幕无码毛片| 国产成人福利免费视频| 亚洲精品免费在线| 国产a不卡片精品免费观看| 在线涩涩免费观看国产精品| vvvv99日韩精品亚洲| 久久国产乱子伦精品免费一|