/*
* CardManageFrame.java
*
* Created on 2006年3月2日, 下午8:57
*/
package org.netbeans.swing.cardmanage;
import java.util.*;
/**
*
* @author boyingking
*/
public class CardManageFrame extends javax.swing.JFrame {
java.util.Vector vecListCard=new java.util.Vector();
java.util.Hashtable hashCardInfo=new java.util.Hashtable();
/** Creates new form CardManageFrame */
public CardManageFrame() {
initComponents();
this.setSize(500,410);
this.setState(false);
}
/** 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=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroupOne = new javax.swing.ButtonGroup();
buttonGroupTwo = new javax.swing.ButtonGroup();
buttonGroupThree = new javax.swing.ButtonGroup();
jSplitPaneGlobal = new javax.swing.JSplitPane();
jSplitPaneLeft = new javax.swing.JSplitPane();
jPanel1LeftTop = new javax.swing.JPanel();
jRadioButtonOldCard = new javax.swing.JRadioButton();
jRadioButtonAddNewCard = new javax.swing.JRadioButton();
jPanelLeftBottom = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
jListCardList = new javax.swing.JList();
jSplitPaneRight = new javax.swing.JSplitPane();
jPanelRightTop = new javax.swing.JPanel();
jLabelName = new javax.swing.JLabel();
jLabelAddress = new javax.swing.JLabel();
jLabelPhone = new javax.swing.JLabel();
jLabelEmail = new javax.swing.JLabel();
jTextFieldName = new javax.swing.JTextField();
jTextFieldPhone = new javax.swing.JTextField();
jTextFieldEmail = new javax.swing.JTextField();
jRadioButtonFavor = new javax.swing.JRadioButton();
jRadioButtonDegree = new javax.swing.JRadioButton();
jButtonAdd = new javax.swing.JButton();
jButtonDelete = new javax.swing.JButton();
jTextFieldAddress = new javax.swing.JTextField();
jPanelRightBottom = new javax.swing.JPanel();
jPanelFavor = new javax.swing.JPanel();
jCheckBoxSing = new javax.swing.JCheckBox();
jCheckBoxDance = new javax.swing.JCheckBox();
jCheckBoxChat = new javax.swing.JCheckBox();
jCheckBoxBasketBall = new javax.swing.JCheckBox();
jCheckBoxVolleyBall = new javax.swing.JCheckBox();
jCheckBoxFootBall = new javax.swing.JCheckBox();
jPanelDegree = new javax.swing.JPanel();
jRadioButtonBachelor = new javax.swing.JRadioButton();
jRadioButtonDoctor = new javax.swing.JRadioButton();
jRadioButtonOther = new javax.swing.JRadioButton();
jRadioButtonMaster = new javax.swing.JRadioButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("CardManage Frame");
setLocationByPlatform(true);
setResizable(false);
jSplitPaneGlobal.setBorder(null);
jSplitPaneGlobal.setDividerLocation(150);
jSplitPaneGlobal.setDividerSize(3);
jSplitPaneLeft.setDividerLocation(110);
jSplitPaneLeft.setDividerSize(0);
jSplitPaneLeft.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
jPanel1LeftTop.setBorder(javax.swing.BorderFactory.createTitledBorder("\u9009\u62e9\u52a8\u4f5c"));
buttonGroupOne.add(jRadioButtonOldCard);
jRadioButtonOldCard.setSelected(true);
jRadioButtonOldCard.setText("\u67e5\u770b\u5df2\u6709\u540d\u7247");
jRadioButtonOldCard.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jRadioButtonOldCard.setMargin(new java.awt.Insets(0, 0, 0, 0));
jRadioButtonOldCard.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
jRadioButtonOldCardItemStateChanged(evt);
}
});
buttonGroupOne.add(jRadioButtonAddNewCard);
jRadioButtonAddNewCard.setText("\u6dfb\u52a0\u65b0\u540d\u7247");
jRadioButtonAddNewCard.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jRadioButtonAddNewCard.setMargin(new java.awt.Insets(0, 0, 0, 0));
jRadioButtonAddNewCard.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
jRadioButtonAddNewCardItemStateChanged(evt);
}
});
org.jdesktop.layout.GroupLayout jPanel1LeftTopLayout = new org.jdesktop.layout.GroupLayout(jPanel1LeftTop);
jPanel1LeftTop.setLayout(jPanel1LeftTopLayout);
jPanel1LeftTopLayout.setHorizontalGroup(
jPanel1LeftTopLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1LeftTopLayout.createSequentialGroup()
.addContainerGap()
.add(jPanel1LeftTopLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jRadioButtonOldCard)
.add(jRadioButtonAddNewCard))
.addContainerGap(31, Short.MAX_VALUE))
);
jPanel1LeftTopLayout.setVerticalGroup(
jPanel1LeftTopLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1LeftTopLayout.createSequentialGroup()
.addContainerGap()
.add(jRadioButtonOldCard)
.add(14, 14, 14)
.add(jRadioButtonAddNewCard)
.addContainerGap(30, Short.MAX_VALUE))
);
jSplitPaneLeft.setTopComponent(jPanel1LeftTop);
jPanelLeftBottom.setLayout(new java.awt.GridLayout(1, 0));
jPanelLeftBottom.setBorder(javax.swing.BorderFactory.createTitledBorder("\u540d\u7247\u5217\u8868"));
jListCardList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
jListCardListValueChanged(evt);
}
});
jScrollPane1.setViewportView(jListCardList);
jPanelLeftBottom.add(jScrollPane1);
jSplitPaneLeft.setRightComponent(jPanelLeftBottom);
jSplitPaneGlobal.setLeftComponent(jSplitPaneLeft);
jSplitPaneRight.setDividerLocation(250);
jSplitPaneRight.setDividerSize(3);
jSplitPaneRight.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
jPanelRightTop.setBorder(javax.swing.BorderFactory.createTitledBorder("\u540d\u7247\u8be6\u7ec6\u4fe1\u606f"));
jLabelName.setText("\u59d3\u540d\uff1a");
jLabelAddress.setText("\u5730\u5740\uff1a");
jLabelPhone.setText("\u8054\u7cfb\u7535\u8bdd\uff1a");
jLabelEmail.setText("\u7535\u5b50\u90ae\u4ef6\uff1a");
buttonGroupTwo.add(jRadioButtonFavor);
jRadioButtonFavor.setSelected(true);
jRadioButtonFavor.setText("\u7231\u597d");
jRadioButtonFavor.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jRadioButtonFavor.setMargin(new java.awt.Insets(0, 0, 0, 0));
jRadioButtonFavor.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
jRadioButtonFavorItemStateChanged(evt);
}
});
buttonGroupTwo.add(jRadioButtonDegree);
jRadioButtonDegree.setText("\u5b66\u5386");
jRadioButtonDegree.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
jRadioButtonDegree.setMargin(new java.awt.Insets(0, 0, 0, 0));
jRadioButto
评论11
最新资源