Redian新闻
>
Configuration File reading.. xml?
avatar
Configuration File reading.. xml?# Java - 爪哇娇娃
j*1
1
发信人: mitbbs (未名空间), 信区: Complain
标 题: Re: [投诉]Trustinjesus版主dignity滥用权力任意删贴
发信站: BBS 未名空间站 (Tue Jun 21 03:46:35 2011, 美东)
处理结果
若未违反版规,且并未涉及攻击,应允许其存在和正常讨论
avatar
c*t
2
Do you guys use ResourceBundle or XML parser to read application
configuartion? Strength and Weakness?
I tried to use XML to parse a config file and it seemed take a
lot more coding.
BTW, for AbstractAction, how to specify its name and icon (used
in menus and buttons) after its construction?
Thanks a lot.
avatar
g*y
3
I always use Properties, it's simple and easy to use.
Easiest way to find how they deal with name, icon in AbstractAction, read
AbstractAction.java :-)
/************* Excerpt from AbstractAction.java **************/
/**
* Defines an Action object with a default
* description string and default icon.
*/
public AbstractAction() {
}

/**
* Defines an Action object with the specified
* description string and a default icon.
*/


【在 c*****t 的大作中提到】
: Do you guys use ResourceBundle or XML parser to read application
: configuartion? Strength and Weakness?
: I tried to use XML to parse a config file and it seemed take a
: lot more coding.
: BTW, for AbstractAction, how to specify its name and icon (used
: in menus and buttons) after its construction?
: Thanks a lot.

avatar
c*t
4
got it, thx :D

【在 g**********y 的大作中提到】
: I always use Properties, it's simple and easy to use.
: Easiest way to find how they deal with name, icon in AbstractAction, read
: AbstractAction.java :-)
: /************* Excerpt from AbstractAction.java **************/
: /**
: * Defines an Action object with a default
: * description string and default icon.
: */
: public AbstractAction() {
: }

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。