package com.parking;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.*;
/*
* InitFrame.java
*
* Created on 2008年9月2日, 下午7:36
*/
/**
*
* @author cheng
*/
public class InitFrame extends JFrame {
// 变量声明 - 不进行修改
//GEN-BEGIN:variables
/**
*
*/
private static final long serialVersionUID = 1L;
private JButton jButton1;
private JLabel jLabel1;
private JLabel jLabel2;
private JLabel jLabel3;
private JSpinner jSpinnerStopArea;
private JButton jbtnCancel;
private JButton jbtnOK;
public JButton jbtnStopCount;
private JTextField jtxtCarCount;
private JTextField jtxtStopCount;
public int m_Area[];
SpinnerNumberModel mdl;
// 变量声明结束//GEN-END:variables
/** Creates new form InitFrame */
public InitFrame() {
initComponents();
mdl = new SpinnerNumberModel();
this.jSpinnerStopArea.setModel(mdl);
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" 生成的代码 ">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new JLabel();
jtxtStopCount = new JTextField();
jbtnStopCount = new JButton();
jLabel2 = new JLabel();
jSpinnerStopArea = new JSpinner();
jLabel3 = new JLabel();
jtxtCarCount = new JTextField();
jButton1 = new JButton();
jbtnOK = new JButton();
jbtnCancel = new JButton();
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
setTitle("\u505c\u8f66\u573a\u521d\u59cb\u5316");
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent evt) {
formWindowClosing(evt);
}
});
jLabel1.setText("\u505c\u8f66\u533a\u57df\u4e2a\u6570\uff1a");
jbtnStopCount.setText("\u8f93\u5165\u505c\u533a\u4e2a\u6570");
jbtnStopCount.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jbtnStopCountActionPerformed(evt);
}
});
jLabel2.setText("\u505c\u8f66\u533a\u53f7\uff1a");
jSpinnerStopArea.setEnabled(false);
jLabel3.setText("\u505c\u8f66\u4f4d\u4e2a\u6570\uff1a");
jtxtCarCount.setEnabled(false);
jButton1.setText("\u8f93\u5165\u505c\u533a\u8f66\u4f4d\u4e2a\u6570");
jButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jbtnOK.setText("\u786e\u5b9a");
jbtnOK.setEnabled(false);
jbtnOK.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jbtnOKActionPerformed(evt);
}
});
jbtnCancel.setText("\u53d6\u6d88");
jbtnCancel.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jbtnCancelActionPerformed(evt);
}
});
GroupLayout layout = new GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSpinnerStopArea, GroupLayout.PREFERRED_SIZE, 37, GroupLayout.PREFERRED_SIZE)
.addGap(14, 14, 14)
.addComponent(jLabel3, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
.addGap(13, 13, 13)
.addComponent(jtxtCarCount, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(24, 24, 24)
.addComponent(jtxtStopCount, GroupLayout.PREFERRED_SIZE, 99, GroupLayout.PREFERRED_SIZE)
.addGap(25, 25, 25)
.addComponent(jbtnStopCount))))
.addGroup(layout.createSequentialGroup()
.addGap(29, 29, 29)
.addComponent(jButton1, GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE)
.addGap(22, 22, 22)
.addComponent(jbtnOK, GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jbtnCancel, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE)
.addGap(23, 23, 23)))
.addGap(51, 51, 51))
);
layout.setVerticalGroup(
layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(30, 30, 30)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(jtxtStopCount, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(jbtnStopCount))
.addGap(27, 27, 27)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.TRAILING)
.addComponent(jLabel2)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(jSpinnerStopArea, GroupLayout.PREFERRED_SIZE, 15, GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3, GroupLayout.PREFERRED_SIZE, 15, GroupLayout.PREFERRED_SIZE)
.addComponent(jtxtCarCount, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
.addGap(76, 76, 76)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jbtnOK)
.addComponent(jbtnCancel))
.addContainerGap(100, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void jbtnCancelActionPerformed(ActionEvent evt) {// GEN-FIRST:event_jbtnCancelActionPerformed
// TODO 将在此处添加您的处理代码:
JOptionPane.showMessageDialog(null, "您没有初始化,无法执行");
System.exit(-1);
}// GEN-LAST:event_jbtnCancelActionPerformed
private void jbtnOKActionPerformed(ActionEvent evt) {// GEN-FIRST:event_jbtnOKActionPerformed
// TODO 将在此处添加您的处理代码:
this.setVisible(false);
this.removeNotify();
WorkFram frm = new WorkFram(this)

林先森cC
- 粉丝: 19
最新资源
- COMSOL声子晶体建模:带隙与传输损耗计算方法及应用
- SQL-Server-2008数据库设计与管理03单元3创建与管理数据表(ppt文档).ppt
- 区域农产品电子商务运营策划方案.doc
- 2023年SEO电脑维修网站整体优化方案.doc
- 综合项目管理知识标准体系中的九大知识领域.doc
- 配拣型仓库控制系统“仓库任务操作系统”介绍-PPT课件.pptx
- 网络综合布线投标书模板.doc
- 机械故障诊断学钟秉林第章神经网络诊断原理.ppt
- 通信行业大数据项目市场需求.docx
- 嵌入式系统rteosμcosii的移植.pptx
- 哈希算法介绍(7页).doc
- 物联网与工业自动化的关系ppt课件.ppt
- 内蒙古准格尔旗高中数学第一章算法初步1.1.2程序框图与算法的基本逻辑结构例题课件新人教B版必修3.ppt
- 学生计算机学习心得体会900字5篇.docx
- 2023年软件评测师上午试题分析与解答.doc
- 建设项目管理作业参考答案.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


