aboutpanel.java
来自「打印管理程序,测试完全通过.windows开发环境.」· Java 代码 · 共 62 行
JAVA
62 行
package jp.co.ntl.swing.ext;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.SpringLayout;
import jp.co.ntl.swing.SpringUtilities;
import jp.co.ntl.Util;
public class AboutPanel extends AbstractDetailInfoPanel {
/**
*
*/
private static final long serialVersionUID = 1L;
private JLabel lblName;
private JLabel lblVersion;
private JLabel lblCopyright;
public AboutPanel() {
super(false, null);
}
protected void setParams(Object[] params) {
}
protected void buildComponents() {
Resource.load(Util.getCurrentLocale());
setLayout(new SpringLayout());
lblName = new JLabel(Resource.getString(Resource.ABOUT_NAME), JLabel.CENTER);
add(lblName);
lblVersion = new JLabel(Resource.getString(Resource.ABOUT_VERSION), JLabel.CENTER);
add(lblVersion);
lblCopyright = new JLabel(Resource.getString(Resource.ABOUT_COPYRIGHT), JLabel.CENTER);
add(lblCopyright);
SpringUtilities.makeCompactGrid(this, getComponentCount(), 1, 10, 10, 10, 10);
setDefaultButton(OK_BUTTON);
setValuesToComponent();
}
protected boolean checkValues() {
return true;
}
protected void setValuesToComponent() {
}
protected void setValuesFromComponent() {
}
public JButton[] getButtons() {
return new JButton[] { new JButton(Resource.getString(Resource.ABOUT_OK)) };
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?