📄 systemhelp.java
字号:
package car;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
import javax.swing.*;
import java.awt.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import javax.swing.border.Border;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.awt.event.WindowEvent;
import java.awt.event.WindowAdapter;
import java.awt.Font;
public class SystemHelp extends JFrame {
public SystemHelp() {
try {
try {
r = db.getResult("select * from admin");
r.first();
jLabel7.setText(r.getString("联系方式"));
} catch (HeadlessException ex) {
} catch (SQLException ex) {
}
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
}
}
// public static void main(String[] args) {
// SystemHelp systemhelp = new SystemHelp();
// }
private void jbInit() throws Exception {
jLabel1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
jLabel1.setBorder(border1);
jLabel1.setText(" 登录时:普通用户ID为驾驶证号,密码为身份证号");
this.getContentPane().setLayout(xYLayout1);
jLabel2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
jLabel2.setBorder(BorderFactory.createEtchedBorder());
jLabel2.setText(" 普通用户:");
jLabel3.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
jLabel3.setBorder(BorderFactory.createEtchedBorder());
jLabel3.setText(" 只可进行查询操作");
xYLayout1.setWidth(441);
xYLayout1.setHeight(448);
jLabel5.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
jLabel5.setBorder(BorderFactory.createEtchedBorder());
jLabel5.setText(" 管理员:");
jLabel4.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
jLabel4.setBorder(BorderFactory.createEtchedBorder());
jLabel4.setText(" 可进行所有操作");
jLabel6.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
jLabel6.setBorder(border2);
jLabel6.setText(" 若需其它帮助,请联系本系统管理员");
jPanel1.setBorder(border3);
jPanel1.setLayout(xYLayout2);
tel_l.setFont(new java.awt.Font("Dialog", Font.PLAIN, 14));
tel_l.setText("联系方式:");
jButton1.setBackground(Color.white);
jButton1.setFont(new java.awt.Font("宋体", Font.PLAIN, 14));
jButton1.setToolTipText("返 回");
jButton1.setText("");
jButton1.addActionListener(new SystemHelp_jButton1_actionAdapter(this));
this.setTitle("沈阳志远出租汽车公司出租车信息管理系统--软件信息窗口");
jLabel7.setFont(new java.awt.Font("宋体", Font.PLAIN, 14));
this.getContentPane().add(jPanel1, new XYConstraints(45, 241, 365, 96));
this.getContentPane().add(jLabel1, new XYConstraints(45, 204, 365, 39));
jPanel1.add(jLabel6, new XYConstraints(0, 6, -1, 27));
jPanel1.add(jLabel7, new XYConstraints(86, 28, 144, 36));
this.getContentPane().add(jLabel2, new XYConstraints(45, 47, 87, 43));
this.getContentPane().add(jLabel3, new XYConstraints(135, 47, 144, 43));
this.getContentPane().add(jLabel4, new XYConstraints(135, 102, 144, 43));
this.getContentPane().add(jLabel5, new XYConstraints(45, 102, 87, 43));
jPanel1.add(tel_l, new XYConstraints(8, 28, 72, 37));
this.getContentPane().add(jButton1, new XYConstraints(161, 366, 105, 52));
this.getContentPane().add(jLabel8, new XYConstraints(282, 47, 127, 98));
this.setVisible(true);
this.setLocation(170, 50);
this.setSize(440, 477);
addWindowListener(new WindowAdapter() {
public void WindowClosing(WindowEvent e) {
db.closeConnection();
dispose();
}
});
}
DataBaseManager db = new DataBaseManager();
ResultSet r;
JLabel jLabel1 = new JLabel();
XYLayout xYLayout1 = new XYLayout();
Border border1 = BorderFactory.createEtchedBorder(Color.white,
new Color(165, 163, 151));
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JLabel jLabel4 = new JLabel();
JLabel jLabel5 = new JLabel();
JLabel jLabel6 = new JLabel();
Border border2 = BorderFactory.createEmptyBorder();
JPanel jPanel1 = new JPanel();
Border border3 = BorderFactory.createEtchedBorder(Color.white,
new Color(165, 163, 151));
XYLayout xYLayout2 = new XYLayout();
JLabel tel_l = new JLabel();
JButton jButton1 = new JButton(new ImageIcon("image\\3.gif"));
JLabel jLabel7 = new JLabel();
JLabel jLabel8 = new JLabel(new ImageIcon("image\\108.gif"));
public void jButton1_actionPerformed(ActionEvent e) {
db.closeConnection();
this.dispose();
}
}
class SystemHelp_jButton1_actionAdapter implements ActionListener {
private SystemHelp adaptee;
SystemHelp_jButton1_actionAdapter(SystemHelp adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -