⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aboutpanel.java

📁 打印管理程序,测试完全通过.windows开发环境.
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -