📄 aboutdialog.java
字号:
/*
* AboutDialog.java
*
* Created on 2006年5月10日, 上午11:00
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package media;
import java.awt.*;
import javax.swing.*;
/**
*
* @author freezing
*/
public class AboutDialog extends JDialog{
/** Creates a new instance of AboutDialog */
private javax.swing.JLabel authorLabel;
private javax.swing.JLabel jLabel1;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTextArea jTextArea1;
public AboutDialog(Frame frame,String title) {
super(frame,title);
initComponents();
}
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
authorLabel = new javax.swing.JLabel();
jLabel1.setIcon(new javax.swing.ImageIcon("Image\\hand.jpg"));
jLabel1.setText("");
jTextArea1.setColumns(55);
jTextArea1.setEditable(false);
jTextArea1.setRows(5);
jTextArea1.setText(" SO Many OpenSource Project,Why Not Open Your Document?\n Know Unknown Through Known~~~~\n\n\t\t\t\t 2006-5-9\n");
jScrollPane1.setViewportView(jTextArea1);
authorLabel.setText(" Copyright (C) Freezing 广东海洋大学2006/5/...");
authorLabel.setHorizontalAlignment(SwingConstants.RIGHT);
this.setAlwaysOnTop(true);
this.setLayout(new FlowLayout());
this.add(jLabel1);
this.add(jScrollPane1);
this.add(authorLabel);
this.setSize(590,490);
this.setLocation(100,100);
this.setResizable(false);
}// </editor-fold>
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -