資源簡介
1,具有可視化界面,功能完善,操作簡便;
2,實現場地定義,計價表定義:可以靈活定義球場及不同時段的計價;
3,實現會員信息管理:對會員信息的增,刪,改,查。
4. 預約管理:實現預約的增刪改查。
5,收費管理。

代碼片段和文件信息
package?ymq;
import?java.awt.CardLayout;
import?java.awt.Color;
import?java.awt.FlowLayout;
import?java.awt.GridLayout;
import?java.awt.event.ActionEvent;
import?java.awt.event.ActionListener;
import?java.util.Vector;
import?javax.swing.ButtonGroup;
import?javax.swing.JButton;
import?javax.swing.JComboBox;
import?javax.swing.Jframe;
import?javax.swing.JLabel;
import?javax.swing.JOptionPane;
import?javax.swing.JPanel;
import?javax.swing.JRadioButton;
import?javax.swing.JScrollPane;
import?javax.swing.JSplitPane;
import?javax.swing.JTable;
import?javax.swing.JTextField;
import?javax.swing.table.DefaultTableModel;
public?class?ChangeG?extends?JPanel?implements?ActionListener{
private?Database?db;
private?JLabel[]?jl={new?JLabel(“當前場地“)new?JLabel(“場地等級“)?new?JLabel(“場地狀態“)
new?JLabel(“是否預約“)?new?JLabel(“場地1:“)new?JLabel(“場地2:“)
?????????????new?JLabel(“場地3:“)new?JLabel(“場地4:“)};
private?JButton[]?jb={new?JButton(“最前“)new?JButton(“上一個“)new?JButton(“下一個“)new?JButton(“最后“)new?JButton(“添加場地“)
new?JButton(“減少場地“)new?JButton(“更新“)new?JButton(“查詢“)};
// private?JButton?jb1=new?JButton(“確認“);
String[]?str1={new?String(“豪華“)new?String(“高級“)new?String(“普通“)};
private?JTextField[]?jtf={new?JTextField()new?JTextField()new?JTextField()};
String[]?str2={new?String(“使用中“)new?String(“維修中“)new?String(“空閑中“)};
private?JComboBox[]?jcb={new?JComboBox(str1)new?JComboBox(str2)};
private?JRadioButton?jr1=new?JRadioButton(“是“true);
private?JRadioButton?jr2=new?JRadioButton(“否“);
private?ButtonGroup?bg=new?ButtonGroup();
private?JPanel?jp1=new?JPanel()jp2=new?JPanel();
private?JSplitPane?js=new?JSplitPane(JSplitPane.VERTICAL_SPLITtruejp1jp2);
private?int?i=1flag=0;?
private?String[]?str={““““““““};
Vector?datas=new?Vector();
Vector?head=new?Vector();
{
head.add(“場地號“);
head.add(“場地等級“);
head.add(“場地狀態“);
head.add(“是否預約“);
// head.add(“聯系電話“);
}
DefaultTableModel?dtm=new?DefaultTableModel(datashead);
private?JTable?jt=new?JTable(dtm);
JScrollPane?jsp=new?JScrollPane(jt);
public?ChangeG(){
this.setBackground(Color.LIGHT_GRAY);
this.initialframe();
this.addListener();
}
private?void?addListener()?{
for(int?i=0;i<8;i++){
jb[i].addActionListener(this);
}
jcb[0].addActionListener(this);
jcb[1].addActionListener(this);
jtf[0].addActionListener(this);
jr1.addActionListener(this);
jr2.addActionListener(this);
}
private?void?initialframe()?{
this.setLayout(new?GridLayout());
jp1.setLayout(null);
jp1.setBackground(Color.LIGHT_GRAY);
jp2.setBackground(Color.LIGHT_GRAY);
js.setTopComponent(jp1);
js.setBottomComponent(jsp);
js.setDividerLocation(150);
js.setDividerSize(3);
this.add(js“js“);
for(int?i=0;i<4;i++){
jp1.add(jl[i]);
jl[i].setBounds(10+i*130306020);
}
jtf[0].setBounds(70306020);
jp1.add(jtf[0]);
j
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????301??2012-12-01?17:58??ymq\.classpath
?????文件????????378??2012-12-01?17:58??ymq\.project
?????文件????????629??2012-12-01?17:58??ymq\.settings\org.eclipse.jdt.core.prefs
?????文件???????8691??2012-12-12?10:10??ymq\bin\ymq\ChangeG.class
?????文件???????5648??2012-12-12?10:10??ymq\bin\ymq\ChangeVIP.class
?????文件???????2037??2012-12-12?10:10??ymq\bin\ymq\Databa
?????文件???????3895??2012-12-12?10:10??ymq\bin\ymq\DeleteVIP.class
?????文件???????7694??2012-12-12?10:10??ymq\bin\ymq\DesignVal.class
?????文件???????5954??2012-12-12?10:10??ymq\bin\ymq\ExistOrder.class
?????文件???????1880??2012-12-12?10:09??ymq\bin\ymq\index$1.class
?????文件???????5827??2012-12-12?10:09??ymq\bin\ymq\index.class
?????文件????????569??2012-12-12?10:09??ymq\bin\ymq\MyNode.class
?????文件???????1020??2012-12-12?10:09??ymq\bin\ymq\Newfee$JLabelTimerTask.class
?????文件???????8339??2012-12-12?10:09??ymq\bin\ymq\Newfee.class
?????文件???????5628??2012-12-12?10:09??ymq\bin\ymq\NewOrder.class
?????文件???????6024??2012-12-12?10:09??ymq\bin\ymq\NewVIP.class
?????文件???????1301??2012-12-12?10:09??ymq\bin\ymq\OrderInfo.class
?????文件???????5074??2012-12-12?10:09??ymq\bin\ymq\SelectVIP.class
?????文件???????1490??2012-12-12?10:09??ymq\bin\ymq\VIPInfo.class
?????文件????????762??2012-12-12?10:09??ymq\bin\ymq\Welcome.class
?????文件???????1045??2012-11-12?23:33??ymq\build\ico.gif
?????文件????????130??2012-12-11?22:46??ymq\build\run.bat
?????文件???????8691??2012-12-11?21:14??ymq\build\ymq\ChangeG.class
?????文件???????5364??2012-12-10?23:52??ymq\build\ymq\ChangeVIP.class
?????文件???????2037??2012-12-11?22:14??ymq\build\ymq\Databa
?????文件???????3895??2012-12-10?23:52??ymq\build\ymq\DeleteVIP.class
?????文件???????7694??2012-12-11?22:34??ymq\build\ymq\DesignVal.class
?????文件???????5954??2012-12-10?23:52??ymq\build\ymq\ExistOrder.class
?????文件???????1880??2012-12-11?22:37??ymq\build\ymq\index$1.class
?????文件???????5827??2012-12-11?22:37??ymq\build\ymq\index.class
............此處省略43個文件信息
評論
共有 條評論