📄 jmguilabel.java
字号:
package jm.framework.gui.container;
import javax.swing.JComponent;
import jm.framework.gui.module.JMLabel;
import jm.framework.gui.module.JMPanel;
import jm.util.JMVector;
/**
* <p>Title: JM 整合Swing控件,使用配置信息</p>
*
* <p>Copyright: Copyright (c) 2004-2006</p>
*
* <p>Company: 1SHome</p>
*
* <p>@author Spook</p>
*
* @since 1.3
* @see JDK 1.5.0.6
*/
public class JMGUILabel extends JMGUIAbstractContralPanel {
/**
*
*/
private static final long serialVersionUID = 6412706488560784659L;
public JMGUILabel () {
super(new JMPanel());
}
/**
* 初始化
* @throws Exception
* @todo Implement this jm.framework.gui.module.JMContralComponent method
*/
public void load () throws Exception {
ValueComponent = new JMVector<JComponent>(5);
JMLabel _component_ = null;
for (int i = 0; i < Number; i++) {
_component_ = new JMLabel();
if (Value.size() > i) {
_component_.setText(Value.get(i));
}
RootPanel.add(_component_);
ValueComponent.add(_component_);
}
super.load();
}
///////////////////////////////////////////////////////////////////////////
/**
* 获得显示控件的内容
*
* @return JMVector
* @todo Implement this jm.framework.gui.module.JMContralComponent method
*/
public JMVector<String> getValue () {
return Value;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -