`
kurting615
  • 浏览: 93142 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

spark二次开发会议列表乱码解决思路

    博客分类:
  • IM
 
阅读更多

修改BookMarkItem.java中

 

 

 public BookmarkItem() {
        setLayout(new GridBagLayout());

        imageLabel = new JLabel();
        nameLabel = new JLabel();
        descriptionLabel = new JLabel();


        descriptionLabel.setFont(new Font("微软雅黑", Font.PLAIN, 12));
        descriptionLabel.setForeground((Color)UIManager.get("ContactItemDescription.foreground"));
        descriptionLabel.setHorizontalTextPosition(JLabel.LEFT);
        descriptionLabel.setHorizontalAlignment(JLabel.LEFT);

 descriptionLabel.setFont(new Font("微软雅黑", Font.PLAIN, 12));

修改JiveTreeCellRenderer.java中

     JiveTreeNode node = (JiveTreeNode)value;
        if (node.getAllowsChildren()) {
            setFont(new Font("微软雅黑", Font.BOLD, 12));
        }
        else {
            setFont(new Font("微软雅黑", Font.PLAIN, 12));
        }

主要是编码造成的问题,同样的可以修改自定义状态中的乱码问题

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics