?? jiesh.java
字號:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
class jiesh extends JFrame implements ActionListener
{ private condb con=null;
private ResultSet rs=null;
private String sql=null;
private JLabel q1=new JLabel("本軟件介紹");
private JTextArea jstx=new JTextArea();
private JButton d2=new JButton("返回主界面");
public jiesh()
{ super("軟件介紹");
setSize(400,350);
setBackground(Color.LIGHT_GRAY);
this.setLocationRelativeTo(this.getParent());
setResizable(false);
Container cont=this.getContentPane();
cont.setLayout(null);
q1.setBounds(150,20,300,30);
jstx.setBounds(40,50,300,200);
jstx.setText(" 本軟件適用于人事工資管理不復雜的中小企業或其他類型\n企事業單位。軟件界面友好、操作簡單。");
jstx.setEditable(false);
d2.setBounds(240,260,100,30);
cont.add(q1);
cont.add(jstx);
cont.add(d2);
d2.addActionListener(this);
setVisible(true);
}
public void actionPerformed(ActionEvent ae)
{
if(ae.getActionCommand().equals("返回主界面"))
dispose();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -