📄 dialogalam.java
字号:
package MapperClientApplet;import java.awt.*;import javax.swing.*;import com.borland.jbcl.layout.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author unascribed * @version 1.0 */public class DialogAlam extends JDialog { JPanel panel1 = new JPanel(); private JButton jButtonAlarmFree = new JButton(); private JButton jButtonOK = new JButton(); private JLabel jLabel1 = new JLabel(); private JTextField jTextField2 = new JTextField(); private JLabel jLabelName = new JLabel(); private JLabel jLabel4 = new JLabel(); private JLabel jLabelCarButtomNum = new JLabel(); private JLabel jLabelProvince = new JLabel(); private JLabel jLabel7 = new JLabel(); private JLabel jLabelLongitude = new JLabel(); private JLabel jLabelLatirude = new JLabel(); private JLabel jLabel10 = new JLabel(); private JLabel jLabel11 = new JLabel(); private JLabel jLabel12 = new JLabel(); private JLabel jLabelCarNameTel = new JLabel(); private JLabel jLabelCarType = new JLabel(); private JLabel jLabel15 = new JLabel(); private JLabel jLabel16 = new JLabel(); private JLabel jLabel17 = new JLabel(); private JLabel jLabelConnectName = new JLabel(); private JLabel jLabelEngineNum = new JLabel(); private JLabel jLabel20 = new JLabel(); private JLabel jLabel21 = new JLabel(); private JLabel jLabelLimitDatetime = new JLabel(); private JLabel jLabel23 = new JLabel(); private JLabel jLabelCarRegDatetime = new JLabel(); private JLabel jLabelCallTel = new JLabel(); private JLabel jLabel26 = new JLabel(); private JLabel jLabel27 = new JLabel(); private JLabel jLabelAddress = new JLabel(); private JLabel jLabel29 = new JLabel(); private JLabel jLabelCarTel = new JLabel(); private JLabel jLabelCarNum = new JLabel(); private JLabel jLabel32 = new JLabel(); private JLabel jLabelCity = new JLabel(); private JLabel jLabelCarColor = new JLabel(); private JLabel jLabel35 = new JLabel(); private JButton jButtonFlameout = new JButton(); private JLabel jLabelSpeed = new JLabel(); private JLabel jLabel36 = new JLabel(); private JLabel jLabel37 = new JLabel(); private JLabel jLabelGetDatetime = new JLabel(); private JLabel jLabelGpsFlag = new JLabel(); private JLabel jLabel40 = new JLabel(); private JLabel jLabelAlarmFlag = new JLabel(); private JLabel jLabel42 = new JLabel(); private Panel panel2 = new Panel(); private Panel panel3 = new Panel(); private JLabel jLabel43 = new JLabel(); private JLabel jLabel44 = new JLabel(); private JLabel jLabel45 = new JLabel(); private JButton jButtonFlameoutFree = new JButton(); private GridBagLayout gridBagLayout2 = new GridBagLayout(); private GridBagLayout gridBagLayout3 = new GridBagLayout(); GridBagLayout gridBagLayout1 = new GridBagLayout(); public DialogAlam(Frame frame, String title, boolean modal) { super(frame, title, modal); try { jbInit(); pack(); } catch(Exception ex) { ex.printStackTrace(); } } public DialogAlam() { this(null, "", false); } private void jbInit() throws Exception { panel1.setLayout(gridBagLayout1); jButtonAlarmFree.setText("解除报警"); jButtonOK.setToolTipText("确定\n"); jButtonOK.setText("确定"); jButtonOK.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { jButtonOK_actionPerformed(e); } }); jLabel1.setText("用户姓名:"); jTextField2.setText("jTextField2"); jLabelName.setText("jLabel3"); jLabel4.setText("jLabel4"); jLabelCarButtomNum.setText("车底盘号:"); jLabelProvince.setText("jLabel6"); jLabel7.setText("经度:"); jLabelLongitude.setText("jLabel8"); jLabelLatirude.setText("jLabel9"); jLabel10.setText("jLabel10"); jLabel11.setText("jLabel11"); jLabel12.setText("车主电话号码:"); jLabelCarNameTel.setText("jLabel13"); jLabelCarType.setText("车辆类型:"); jLabel15.setText("jLabel15"); jLabel16.setText("jLabel16"); jLabel17.setText("联系人名:"); jLabelConnectName.setText("jLabel18"); jLabelEngineNum.setText("发动机号:"); jLabel20.setText("jLabel20"); jLabel21.setText("jLabel21"); jLabelLimitDatetime.setText("有效期限:"); jLabel23.setText("纬度:"); jLabelCarRegDatetime.setText("登记日期:"); jLabelCallTel.setText("联系电话:"); jLabel26.setText("所属省份:"); jLabel27.setText("jLabel27"); jLabelAddress.setText("联系地址:"); jLabel29.setText("车载电话号码:"); jLabelCarTel.setText("jLabel30"); jLabelCarNum.setText("车牌号:"); jLabel32.setText("所属城市:"); jLabelCity.setText("jLabel33"); jLabelCarColor.setText("车辆颜色:"); jLabel35.setText("jLabel35"); jButtonFlameout.setText("强制熄火"); this.setTitle("车辆报警"); jLabelSpeed.setText("速度:"); jLabel36.setText("jLabel36"); jLabel37.setText("获得信息时间:"); jLabelGetDatetime.setText("jLabel38"); jLabelGpsFlag.setText("GPS定位是否有效:"); jLabel40.setText("jLabel40"); jLabelAlarmFlag.setText("是否报警:"); jLabel42.setText("jLabel42"); panel2.setLayout(gridBagLayout3); panel2.setBackground(Color.orange); panel3.setBackground(SystemColor.desktop); panel3.setLayout(gridBagLayout2); jLabel43.setText("jLabel43"); jLabel44.setText("jLabel44"); jLabel45.setText("jLabel45"); jButtonFlameoutFree.setText("解除熄火"); panel2.add(jLabel1, new GridBagConstraints(0, 0, 1, 2, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(14, 26, 0, 22), 2, 11)); panel2.add(jLabel12, new GridBagConstraints(0, 3, 1, 3, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(13, 26, 0, 0), 0, 0)); panel2.add(jLabelAddress, new GridBagConstraints(0, 8, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(21, 26, 25, 9), 15, 0)); panel2.add(jLabel17, new GridBagConstraints(0, 6, 1, 2, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(10, 26, 0, 24), 0, 0)); panel2.add(jLabelCarNameTel, new GridBagConstraints(1, 4, 1, 2, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 7, 0, 0), 31, 0)); panel2.add(jLabelConnectName, new GridBagConstraints(1, 7, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 7, 0, 34), -3, 0)); panel2.add(jLabelName, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(14, 7, 0, 0), 36, 0)); panel2.add(jLabelCity, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 7, 0, 45), -14, 0)); panel2.add(jLabel32, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 26, 0, 13), 11, 0)); panel2.add(jLabel4, new GridBagConstraints(1, 8, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(23, 7, 25, 31), 7, 0)); panel2.add(jLabelProvince, new GridBagConstraints(5, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(14, 7, 0, 103), 0, 0)); panel2.add(jLabel26, new GridBagConstraints(4, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(14, 59, 0, 0), 0, 0)); panel2.add(jLabel11, new GridBagConstraints(5, 1, 1, 2, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 7, 8, 96), 0, 0)); panel2.add(jLabelCarNum, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 59, 0, 12), 0, 0)); panel2.add(jLabel16, new GridBagConstraints(5, 3, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 7, 0, 96), 0, 0)); panel2.add(jLabelCarRegDatetime, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 59, 0, 0), 0, 0)); panel2.add(jLabel21, new GridBagConstraints(5, 5, 1, 2, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 7, 0, 96), 0, 0)); panel2.add(jLabelCallTel, new GridBagConstraints(4, 5, 1, 2, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 59, 0, 0), 0, 0)); panel2.add(jLabel27, new GridBagConstraints(5, 8, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 7, 25, 83), 13, 11)); panel2.add(jLabelLimitDatetime, new GridBagConstraints(4, 8, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(14, 59, 32, 0), 0, 0)); panel2.add(jLabelCarButtomNum, new GridBagConstraints(2, 8, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(21, 88, 25, 15), 12, 0)); panel2.add(jLabel10, new GridBagConstraints(3, 8, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(24, 0, 25, 32), 0, 0)); panel2.add(jLabel20, new GridBagConstraints(3, 6, 1, 2, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(10, 0, 0, 32), 0, 0)); panel2.add(jLabelEngineNum, new GridBagConstraints(2, 7, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 88, 0, 27), 0, 0)); panel2.add(jLabel35, new GridBagConstraints(3, 1, 1, 2, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 7, 32), 0, 0)); panel2.add(jLabel15, new GridBagConstraints(3, 3, 1, 2, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(7, 0, 0, 32), 0, 0)); panel2.add(jLabelCarType, new GridBagConstraints(2, 4, 1, 2, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 88, 0, 27), 0, 0)); panel2.add(jLabelCarColor, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(7, 88, 0, 32), -5, 0)); panel2.add(jLabel29, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(14, 88, 0, 0), 3, 0)); panel2.add(jLabelCarTel, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(14, 0, 0, 0), 32, 0)); panel1.add(panel3, new GridBagConstraints(0, 1, 5, 1, 1.0, 1.0 ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 12, 0, 0), -20, 33)); panel3.add(jLabel7, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(9, 122, 0, 0), 0, 0)); panel3.add(jLabel23, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(9, 25, 0, 47), 0, 0)); panel3.add(jLabelLatirude, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(9, 7, 0, 0), 0, 0)); panel3.add(jLabel36, new GridBagConstraints(6, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(9, 8, 0, 83), 0, 0)); panel3.add(jLabelSpeed, new GridBagConstraints(5, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(16, 65, 0, 23), 0, 0)); panel3.add(jLabelLongitude, new GridBagConstraints(3, 0, 2, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(17, 52, 0, 33), 0, 0)); panel3.add(jLabel37, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(17, 25, 29, 0), 0, 0)); panel3.add(jLabelGetDatetime, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(17, 0, 29, 0), 0, 0)); panel3.add(jLabelGpsFlag, new GridBagConstraints(2, 1, 2, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(15, 121, 29, 0), 0, 0)); panel3.add(jLabel40, new GridBagConstraints(4, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(17, 6, 29, 0), 0, 0)); panel3.add(jLabelAlarmFlag, new GridBagConstraints(5, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(17, 64, 29, 0), 0, 0)); panel3.add(jLabel42, new GridBagConstraints(6, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(12, 12, 29, 83), 0, 0)); panel1.add(panel2, new GridBagConstraints(0, 0, 5, 1, 1.0, 1.0 ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(1, 12, 0, 0), 37, 37)); this.getContentPane().add(panel1, BorderLayout.NORTH); panel1.add(jTextField2, new GridBagConstraints(0, 3, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(26, 67, 0, 0), -6, 8)); panel1.add(jButtonAlarmFree, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(20, 26, 0, 0), 29, 13)); panel1.add(jButtonFlameout, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(22, 20, 0, 0), 29, 13)); panel1.add(jButtonFlameoutFree, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(21, 17, 0, 0), 25, 12)); panel1.add(jButtonOK, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(20, 22, 0, 101), 51, 13)); panel1.add(jLabel44, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(22, 46, 0, 0), 44, 0)); panel1.add(jLabel45, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(26, 36, 0, 52), 0, 0)); panel1.add(jLabel43, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(23, 0, 0, 9), 69, 0)); } void jButtonOK_actionPerformed(ActionEvent e) { }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -