读书人

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

发布时间: 2012-07-04 19:33:54 作者: rapoo

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

修改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));        }

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

读书人网 >开源软件

热点推荐