首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

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

2012-07-04 
spark二次开发会议列表乱码解决思路修改BookMarkItem.java中?? public BookmarkItem() {setLayout(new Gri

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

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

热点排行