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)); }主要是编码造成的问题,同样的可以修改自定义状态中的乱码问题