openfire-Spark二次开发——修改设置窗口(二)其他的小细节
来源:互联网 发布:json转form 编辑:程序博客网 时间:2024/05/17 02:21
1、修改设置-登录下的xmpp端口让其不显示
/spark/src/java/org/jivesoftware/sparkimpl/settings/local/LocalPreferencePanel.java
中注释掉132,133行代码,也就是下面
//inputPanel.add(_portLabel,new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.NORTHWEST,GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));//inputPanel.add(_portField,new GridBagConstraints(1, 0, 1, 1, 0.0,0.0,GridBagConstraints.NORTHWEST,GridBagConstraints.HORIZONTAL,new Insets(5, 5, 5, 5), 0, 0));
效果
没有显示修改xmpp端口了
2、顺便把上面那个英语(Automatic idle message)改成中文
/spark/src/resources/i18n/spark_i18n_zh_CN.properties
增加一项
label.time.till.idlemessage = 你自己要显示的文字(eclispe会自动转码)
3、修改显示样式->自定义
原版
需求。select look and feel删除,表情选择删除
修改后
方法:
/spark/src/java/org/jivesoftware/spark/ui/themes/ThemePanel.java
331行起
//注释掉相应代码 private void buildUI() { // Add Viewer// add(new JScrollPane(transcript), new GridBagConstraints(0, 0, 3, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); //add(emoticonscrollpane, new GridBagConstraints(0, 1, 3, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); //add(emoticonBox, new GridBagConstraints(1, 2, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); //add(addEmoticonButton, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(emoticonCheckBox, new GridBagConstraints(0, 3, 3, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); //add(_lookandfeelLabel, new GridBagConstraints(0, 4, 3, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 50, 0)); //add(_lookandfeel, new GridBagConstraints(1, 4, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 50, 0)); //add(_lookandfeelpreview, new GridBagConstraints(2, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
4、去除活动->语言选项
org.jivesoftware.sparkimpl.plugin.language.LanguagePlugin
注释掉init()方法体即可
1 0
- openfire-Spark二次开发——修改设置窗口(二)其他的小细节
- openfire-Spark二次开发——修改设置窗口
- openfire-Spark二次开发——修改设置窗口
- spark+openfire二次开发(二)
- openfire-spark二次开发——解析自定义的消息
- openfire-spark 二次开发-(二)运行环境配置
- openfire-spark二次开发——增加发送按钮
- 基于openfire和spark的二次开发。
- openfire-spark 二次开发-(一)源码配置
- spark+openfire二次开发
- openfire+spark二次开发
- openfire-spark 二次开发-(三)源码系统总览-1
- openfire-spark 二次开发-(三)源码系统总览-2
- openfire-spark 二次开发-(三)源码系统总览-3
- 基于openfire+asmack+spark修改的即时通讯
- 一个小项目中的Python中的性能优化细节——(下)其他的小细节,减少调用、if判断的顺序
- 关于openfire+spark连不上同一局域网的其他机子
- Spark+Openfire二次开发Message类型汇总
- @RequestMapping 用法
- java中路径问题
- Kubernetes技术分析之网络
- 产生数问题(map+queue/C++)
- 文件处理——文件重定向(一)
- openfire-Spark二次开发——修改设置窗口(二)其他的小细节
- 近期计算机类精品图书强推重磅一览——互动出版网
- 6174问题
- 排序算法
- centos6.5下postgres-XC安装与配置(两台)
- ios面试总结
- OC中的NSMutableString案例讲解
- 第六章 网络层
- 一元二次方程求解递归调用调换数组元素