<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

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


    網站導航:
     
    主站蜘蛛池模板: 69精品免费视频| 无码毛片一区二区三区视频免费播放 | 亚洲专区先锋影音| 男女一进一出抽搐免费视频 | 青青青青青青久久久免费观看| 久久亚洲日韩精品一区二区三区| 久久精品视频免费看| 亚洲视频在线观看免费| 最近中文字幕mv免费高清在线| 亚洲w码欧洲s码免费| 国产精品久久久久免费a∨| 美女视频黄免费亚洲| 毛片免费观看的视频在线| 亚洲一级在线观看| 永久中文字幕免费视频网站| 相泽南亚洲一区二区在线播放| 免费又黄又硬又爽大片| 视频免费在线观看| 久久久久亚洲av无码专区| 一二三四免费观看在线电影| 亚洲乱码日产精品一二三| 亚洲精品99久久久久中文字幕| 伊人久久大香线蕉免费视频| 亚洲第一香蕉视频| 天天摸天天操免费播放小视频| 免费无码AV一区二区| 久久综合日韩亚洲精品色| 免费看韩国黄a片在线观看| 暖暖免费中文在线日本| 亚洲春色在线视频| 无码人妻一区二区三区免费| 美女被艹免费视频| 无码视频免费一区二三区| 美女被免费网站在线视频免费| 久久精品国产精品亚洲精品| 久久久久久国产a免费观看黄色大片| 亚洲av无码专区亚洲av不卡| 亚洲Av综合色区无码专区桃色| 成年18网站免费视频网站| 久久九九免费高清视频 | 亚洲精华液一二三产区|