📄 tabpaneframe.java
字号:
package com.cn.szhaccp.sill;
import com.cn.szhaccp.set.*;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.JOptionPane;
/*
* NewJPanel.java
*
* Created on 2007年5月9日, 下午3:21
*/
/**
*
* @author Administrator
*/
public class tabPaneFrame extends javax.swing.JPanel {
/** Creates new form NewJPanel */
public tabPaneFrame() {
initComponents();
}
/** 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() {
tabPane = new javax.swing.JTabbedPane();
AssetPane = new javax.swing.JPanel();
code = new javax.swing.JLabel();
codeText = new javax.swing.JTextField();
name = new javax.swing.JLabel();
nameText = new javax.swing.JTextField();
sort = new javax.swing.JLabel();
sortText = new javax.swing.JTextField();
model = new javax.swing.JLabel();
modelText = new javax.swing.JTextField();
price = new javax.swing.JLabel();
priceText = new javax.swing.JTextField();
buyDate = new javax.swing.JLabel();
buyDateText = new javax.swing.JTextField();
state = new javax.swing.JLabel();
stateText = new javax.swing.JTextField();
remark = new javax.swing.JLabel();
TextField = new javax.swing.JScrollPane();
remarkText = new javax.swing.JTextArea();
add = new javax.swing.JButton();
change = new javax.swing.JButton();
del = new javax.swing.JButton();
userName = new javax.swing.JLabel();
userNameText = new javax.swing.JTextField();
userNameText.setEditable(false);
reset = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
code.setText("\u7f16\u53f7:");
codeText.setEnabled(false);
name.setText("\u540d\u79f0:");
sort.setText("\u7c7b\u522b:");
model.setText("\u578b\u53f7:");
price.setText("\u4ef7\u503c:");
buyDate.setText("\u65e5\u671f:");
state.setText("\u72b6\u6001:");
remark.setText("\u5907\u6ce8:");
remarkText.setColumns(5);
remarkText.setRows(3);
TextField.setViewportView(remarkText);
add.setText("\u589e\u52a0");
add.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
addActionPerformed(evt);
}
});
change.setText("\u4fee\u6539");
change.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
changeActionPerformed(evt);
}
});
del.setText("\u5220\u9664");
del.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
delActionPerformed(evt);
}
});
userName.setText("\u501f\u7528:");
reset.setText("\u91cd\u7f6e");
reset.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
resetActionPerformed(evt);
}
});
jLabel1.setText("<html><font color = 'red'>1\u4e3a\u6b63\u5e38,2\u4e3a\u7ef4\u4fee,3\u4e3a\u62a5\u5e9f,0\u4e3a\u501f\u51fa</font></html>");
org.jdesktop.layout.GroupLayout AssetPaneLayout = new org.jdesktop.layout.GroupLayout(AssetPane);
AssetPane.setLayout(AssetPaneLayout);
AssetPaneLayout.setHorizontalGroup(
AssetPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(AssetPaneLayout.createSequentialGroup()
.addContainerGap()
.add(AssetPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(org.jdesktop.layout.GroupLayout.LEADING, AssetPaneLayout.createSequentialGroup()
.add(AssetPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
.add(AssetPaneLayout.createSequentialGroup()
.add(state)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(stateText))
.add(AssetPaneLayout.createSequentialGroup()
.add(price)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(priceText))
.add(AssetPaneLayout.createSequentialGroup()
.add(sort)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(sortText))
.add(AssetPaneLayout.createSequentialGroup()
.add(code)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(codeText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 135, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(AssetPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(model)
.add(name)
.add(buyDate)
.add(userName))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(AssetPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
.add(userNameText)
.add(buyDateText)
.add(modelText)
.add(nameText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 166, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(remark)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(TextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE))
.add(AssetPaneLayout.createSequentialGroup()
.add(10, 10, 10)
.add(jLabel1)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 140, Short.MAX_VALUE)
.add(add)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(change, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 60, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(del)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(reset)))
.addContainerGap())
);
AssetPaneLayout.setVerticalGroup(
AssetPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(AssetPaneLayout.createSequentialGroup()
.add(AssetPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(AssetPaneLayout.createSequentialGroup()
.add(15, 15, 15)
.add(AssetPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(code)
.add(name)
.add(nameText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(remark)
.add(codeText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(AssetPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(sort)
.add(sortText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(model)
.add(modelText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(AssetPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(price)
.add(priceText, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(buyDate)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -