?? aboutpanel.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)) };
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -