📄 update_dialog.java
字号:
/*
* update_Dialog.java
*
* Created on 2007年4月30日, 上午10:00
*
*此功能是用来修改设备的记录
*/
package com.cn.szhaccp.set;
import com.cn.szhaccp.landing.ToCenter;
import com.cn.szhaccp.sill.*;
import java.sql.*;
import javax.swing.JOptionPane;
/**
*
* @author Administrator
*/
public class update_Dialog extends javax.swing.JDialog {
sillClass sill;
ToCenter tocenter;
/** Creates new form update_Dialog */
public update_Dialog(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
tocenter = new ToCenter();
tocenter.SetDialogToCenter(this);
}
public update_Dialog(java.awt.Frame parent,boolean modal,sillClass sill){
this(parent,modal);
this.sill = sill;
acquire_sort();
}
/** 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 javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
sorttext = new javax.swing.JComboBox();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
annotationtext = new javax.swing.JTextArea();
Nametext = new javax.swing.JComboBox();
codetext = new javax.swing.JTextField();
modeltext = new javax.swing.JTextField();
merittext = new javax.swing.JTextField();
buydatetext = new javax.swing.JTextField();
usernametext = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
statetext = new javax.swing.JComboBox();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("\u4fee\u6539");
jLabel1.setText("\u8bbe\u5907\u7c7b\u522b\uff1a");
jLabel2.setText("\u8bbe\u5907\u540d\u79f0\uff1a");
jLabel3.setText("\u8bbe\u5907\u7f16\u53f7\uff1a");
jLabel4.setText("\u8bbe\u5907\u578b\u53f7\uff1a");
jLabel5.setText("\u8bbe\u5907\u4ef7\u503c\uff1a");
jLabel6.setText("\u8d2d\u4e70\u65e5\u671f\uff1a");
jLabel7.setText("\u8d44\u4ea7\u72b6\u6001\uff1a");
sorttext.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sorttextActionPerformed(evt);
}
});
jLabel8.setText("\u4f7f\u7528\u804c\u5458\uff1a");
jLabel9.setText("\u5907 \u6ce8\uff1a");
annotationtext.setColumns(10);
annotationtext.setRows(2);
jScrollPane1.setViewportView(annotationtext);
Nametext.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
NametextActionPerformed(evt);
}
});
codetext.setEditable(false);
modeltext.setEditable(false);
usernametext.setEditable(false);
jButton1.setText("\u4fee \u6539");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setText("\u53d6 \u6d88");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
statetext.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "\u501f\u51fa", "\u6b63\u5e38", "\u7ef4\u4fee", "\u62a5\u5e9f" }));
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
.add(layout.createSequentialGroup()
.add(31, 31, 31)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(jLabel7)
.add(jLabel6)
.add(jLabel5)
.add(jLabel4)
.add(jLabel3)
.add(jLabel2)
.add(jLabel1)
.add(jLabel8))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))
.add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(jLabel9)
.add(13, 13, 13)))
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
.add(usernametext)
.add(statetext, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(buydatetext)
.add(merittext)
.add(modeltext)
.add(codetext)
.add(Nametext, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(sorttext, 0, 199, Short.MAX_VALUE)
.add(jScrollPane1, 0, 0, Short.MAX_VALUE)))
.add(layout.createSequentialGroup()
.add(69, 69, 69)
.add(jButton1)
.add(49, 49, 49)
.add(jButton2)))
.addContainerGap(38, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jLabel1)
.add(sorttext, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(layout.createSequentialGroup()
.add(33, 33, 33)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jLabel2)
.add(Nametext, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(20, 20, 20)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jLabel3)
.add(codetext, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(19, 19, 19)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jLabel4)
.add(modeltext, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -