亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? stupsycomquerydialog.java

?? 學(xué)生管理系統(tǒng)。使用java編程
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
package com.hb.stumanagesys.stutinfomag;
import com.cloudgarden.layout.AnchorConstraint;
import com.cloudgarden.layout.AnchorLayout;
import com.hb.jdbcconnct.JdbcConnct;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.util.Date;
import java.util.Vector;

import javax.swing.ButtonGroup;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.ListModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class stuPsyComQueryDialog extends javax.swing.JDialog {
	private JTabbedPane StuPsyTabbedPane;
	private JPanel stuPsyQueryPanel;
	private JComboBox yearTermSelectComboBox;
	private JComboBox compareComboBox;
	private ButtonGroup querybuttonGroup;
	private JButton addQueryButton;
	private JButton ClearButton;
	private JList studentQueryList1;
	private JRadioButton orRadioButton1;
	private JRadioButton andRadioButton1;
	private JRadioButton nullRadioButton1;
	private JButton exitButton;
	private JTable stuPsyTable;
	private JButton searchButton;
	private JLabel queryViewLabel;
	private JScrollPane stuPsyScrollPane;
	private JTextField userInputTextField;
	private JComboBox queryConditionComboBox;
	private JComboBox stuPsyComboBox;
	private JComboBox conditionComboBox;
	private JComboBox weekMonComboBox;
	private JPanel dataViewPanel;
	//定義組合框查詢條件年、月、學(xué)習(xí)心理、學(xué)號(hào)姓名	// 定義ComboBox使用變量 周月查詢字段	private String[] combListDate = { "全部周", "全部月", "周", "月" };

	// 定義ComboBox使用變量 學(xué)習(xí)心理查詢字段	private String[] combListStuPsy = { "全部評(píng)論","學(xué)習(xí)評(píng)論", "心理評(píng)論" };

	// 定義Table使用變量 學(xué)生查詢字段	private String[] columnListStu = { "學(xué)號(hào)", "姓名"};
	
	// 定義Table使用變量 學(xué)習(xí)/心理查詢字段	private String[] columnStuPsyQuery = {  "年度", "周/月", "學(xué)號(hào)", "姓名", "心理評(píng)論",
			"學(xué)習(xí)評(píng)論", "評(píng)論老師" };
	// 判斷條件	private String[] comCompareList = { ">", "<", "=" };
	
	//定義Table顯示變量 row
	private String[][] row;
	
	//定義學(xué)習(xí)\心理查詢表模式	private DefaultTableModel stuPsyTableModel;
	
	// 定義nowYear變量,獲取當(dāng)前年	Date nowDate = new Date();

	int nowYear = nowDate.getYear() + 1900;	
	
	//定義int型變量 nCommentType,1-全部評(píng)論、2-學(xué)習(xí)評(píng)論、3-心理評(píng)論	//初始化為1
	int nCommentType  = 1;
	//是否查詢?nèi)吭路輇isWeekQuery,初始化為false
	boolean  bisWeekQuery = false;
	
	// 定義SQL多條件查詢變量	public Vector vecSQL = new Vector(10);

	// 定義學(xué)生查詢List顯示變量 vecListView
	public Vector vecListView = new Vector(10);
	
	// 定義學(xué)號(hào)正則表達(dá)式7位數(shù)字,第一位不能為空	public final static String REG_DIGIT = "[1-9]\\d{0,6}";
	// 定義學(xué)生查詢條件數(shù)量初始化為1
	int ncount = 1;

	/**
	* Auto-generated main method to display this JDialog
	*/
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		stuPsyComQueryDialog inst = new stuPsyComQueryDialog(frame);
		inst.setVisible(true);
		// 設(shè)置對(duì)話框居中		inst.setLocationRelativeTo(null);
	}
	
	public stuPsyComQueryDialog(JFrame frame) {
		super(frame);
		initGUI();
	}
	
	private void initGUI() {
		try {
			{
				getContentPane().setLayout(null);
				this.setTitle("\u5468\\\u5b66\u4e60\\\u7406\u8bc4\u8bba\u67e5\u8be2");
				getContentPane().setForeground(new java.awt.Color(185,185,255));
				{
					{
						querybuttonGroup = new ButtonGroup();
					}
					StuPsyTabbedPane = new JTabbedPane();
					getContentPane().add(StuPsyTabbedPane);
					StuPsyTabbedPane.setBounds(21, 0, 574, 434);
					{
						stuPsyQueryPanel = new JPanel();
						StuPsyTabbedPane.addTab(
							"評(píng)論查詢",
							null,
							stuPsyQueryPanel,
							null);
						stuPsyQueryPanel.setPreferredSize(new java.awt.Dimension(567, 406));
						stuPsyQueryPanel.setLayout(null);
						{
							String[] stryearTerm = new String[21];// 能查詢的年份為當(dāng)前年份的以前10年							int nextYear = 0;
							//第一項(xiàng)查詢條件,查詢所有學(xué)期							stryearTerm[0] = "所有學(xué)期";
							for (int i = nowYear - 9, j = 1; i <= nowYear 
									&& j < 21; i++) {
								nextYear = i+1;
								stryearTerm[j] = i + "~"+nextYear+"學(xué)年上學(xué)期";
								stryearTerm[j+1] = i + "~"+nextYear+"學(xué)年下學(xué)期";
								j+=2;
							}

							ComboBoxModel yearTermSelectComboBoxModel = new DefaultComboBoxModel(
									stryearTerm);
							yearTermSelectComboBoxModel.setSelectedItem( nowYear + "~"+(nowYear+1)+"學(xué)年上學(xué)期");
							yearTermSelectComboBox = new JComboBox();
							stuPsyQueryPanel.add(yearTermSelectComboBox);
							yearTermSelectComboBox
									.setModel(yearTermSelectComboBoxModel);
							yearTermSelectComboBox.setBounds(28, 21, 168, 21);
							yearTermSelectComboBox
									.addActionListener(new ActionListener() {
										public void actionPerformed(
												ActionEvent evt) {
											yearTermSelectComboBoxActionPerformed(evt);
										}
								});
						}
						{
							ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
									combListDate);
							weekMonComboBox = new JComboBox();
							stuPsyQueryPanel.add(weekMonComboBox);
							weekMonComboBox.setModel(jComboBox1Model);
							weekMonComboBox.setBounds(217, 21, 70, 21);
							weekMonComboBox
								.addActionListener(new ActionListener() {
								public void actionPerformed(ActionEvent evt) {
									weekMonComboBoxActionPerformed(evt);
								}
								});
						}
						{
							ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
									);
							conditionComboBox = new JComboBox();
							stuPsyQueryPanel.add(conditionComboBox);
							conditionComboBox.setModel(jComboBox1Model);
							conditionComboBox.setBounds(308, 21, 70, 21);
						}
						{
							ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
									combListStuPsy);
							stuPsyComboBox = new JComboBox();
							stuPsyQueryPanel.add(stuPsyComboBox);
							stuPsyComboBox.setModel(jComboBox1Model);
							stuPsyComboBox.setBounds(28, 56, 70, 21);
						}
						{
							ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
									columnListStu);
							queryConditionComboBox = new JComboBox();
							stuPsyQueryPanel.add(queryConditionComboBox);
							queryConditionComboBox.setModel(jComboBox1Model);
							queryConditionComboBox.setBounds(126, 56, 70, 21);
							queryConditionComboBox
								.addActionListener(new ActionListener() {
								public void actionPerformed(ActionEvent evt) {
									queryConditionComboBoxActionPerformed(evt);
								}
								});
						}
						{
							userInputTextField = new JTextField();
							stuPsyQueryPanel.add(userInputTextField);
							userInputTextField.setText("\u8bf7\u8f93\u5165\u67e5\u8be2\u4fe1\u606f");
							userInputTextField.setBounds(308, 49, 112, 28);
						}
						{
							searchButton = new JButton();
							stuPsyQueryPanel.add(searchButton);
							searchButton.setText("\u67e5\u8be2");
							searchButton.setBounds(28, 364, 70, 21);
							searchButton
								.addActionListener(new ActionListener() {
								public void actionPerformed(ActionEvent evt) {
									searchButton1ActionPerformed(evt);
								}
								});
						}
						{
							exitButton = new JButton();
							stuPsyQueryPanel.add(exitButton);
							exitButton.setText("\u9000\u51fa");
							exitButton.setBounds(462, 357, 63, 28);
							exitButton.addActionListener(new ActionListener() {
								public void actionPerformed(ActionEvent evt) {
									exitButtonActionPerformed(evt);
								}
							});
						}
						{
							nullRadioButton1 = new JRadioButton();
							stuPsyQueryPanel.add(nullRadioButton1);
							nullRadioButton1.setText("\u65e0");
							nullRadioButton1.setSelected(true);
							nullRadioButton1.setBounds(28, 98, 70, 21);
							querybuttonGroup.add(nullRadioButton1);
						}
						{
							andRadioButton1 = new JRadioButton();
							stuPsyQueryPanel.add(andRadioButton1);
							andRadioButton1.setText("\u5e76\u4e14");
							andRadioButton1.setBounds(98, 98, 70, 21);
							querybuttonGroup.add(andRadioButton1);
						}
						{
							orRadioButton1 = new JRadioButton();
							stuPsyQueryPanel.add(orRadioButton1);
							orRadioButton1.setText("\u6216\u8005");
							orRadioButton1.setBounds(168, 98, 70, 21);
							querybuttonGroup.add(orRadioButton1);
						}
						{
							ListModel studentQueryList1Model = new DefaultComboBoxModel(
								);
							studentQueryList1 = new JList();
							stuPsyQueryPanel.add(studentQueryList1);
							studentQueryList1.setModel(studentQueryList1Model);
							studentQueryList1.setBounds(28, 133, 224, 196);
						}
						{
							ClearButton = new JButton();
							stuPsyQueryPanel.add(ClearButton);
							ClearButton.setText("\u6e05\u7a7a");
							ClearButton.setBounds(105, 364, 70, 21);
							ClearButton.addActionListener(new ActionListener() {
								public void actionPerformed(ActionEvent evt) {
									ClearButtonActionPerformed(evt);
								}
							});
						}
						{
							addQueryButton = new JButton();
							stuPsyQueryPanel.add(addQueryButton);
							addQueryButton.setText("\u589e\u52a0");
							addQueryButton.setBounds(189, 364, 70, 21);
							addQueryButton.addActionListener(new ActionListener() {
								public void actionPerformed(ActionEvent evt) {
									addButton1ActionPerformed(evt);
								}
							});
						}
						{
							ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(
									comCompareList);
							compareComboBox = new JComboBox();
							stuPsyQueryPanel.add(compareComboBox);
							compareComboBox.setModel(jComboBox1Model);
							compareComboBox.setBounds(217, 56, 70, 21);
						}
					}
					{
						dataViewPanel = new JPanel();
						StuPsyTabbedPane.addTab(
							"查詢結(jié)果",
							null,
							dataViewPanel,
							null);
						dataViewPanel.setLayout(null);
						{
							stuPsyScrollPane = new JScrollPane();
							dataViewPanel.add(stuPsyScrollPane);
							stuPsyScrollPane.setBounds(28, 56, 504, 329);
							{
								DefaultTableModel stuPsyTableModel = new DefaultTableModel(
									row,
									columnStuPsyQuery);
								stuPsyTable = new JTable();
								stuPsyTable.setLayout(null);
								stuPsyScrollPane.setViewportView(stuPsyTable);
								stuPsyTable.setModel(stuPsyTableModel);
								//設(shè)置心理學(xué)習(xí)評(píng)論查詢表格的高度								stuPsyTable.setRowHeight(24);
								stuPsyTable.setPreferredSize(new java.awt.Dimension(483, 378));
								stuPsyTable.getTableHeader().setPreferredSize(
									new java.awt.Dimension(494, 21));
								stuPsyTable.getTableHeader().setBounds(
									0,
									0,
									494,
									21);
							}
						}
						{
							queryViewLabel = new JLabel();
							dataViewPanel.add(queryViewLabel);
							queryViewLabel.setText("\u67e5\u8be2\u663e\u793a");
							queryViewLabel.setBounds(70, 14, 399, 28);
							queryViewLabel.setFont(new java.awt.Font("宋體",0,14));
							queryViewLabel.setForeground(new java.awt.Color(0,0,255));
						}
					}
				}
			}
			setSize(625, 475);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private void yearTermSelectComboBoxActionPerformed(ActionEvent evt) {
		//TODO add your code for yearTermSelectComboBox.actionPerformed
		//心理\學(xué)習(xí)查詢年份	}
	
	private void weekMonComboBoxActionPerformed(ActionEvent evt) {
		//根據(jù)周\月選擇顯示周數(shù)、月數(shù)		//用戶選擇組合框的Item索引		int nuserSelect = 0;
		// 獲取用戶選擇字段		nuserSelect = this.weekMonComboBox.getSelectedIndex();
		//組合框索引加一		nuserSelect ++;

		
		//利用switch語句進(jìn)行判斷		switch(nuserSelect){
		case 1:
			//如果用戶選擇查詢?nèi)恐埽[藏1-18周			this.conditionComboBox.setVisible(false);			
			
			break;
		case 2:
			//如果用戶選擇查詢?nèi)吭?,隱藏1-4月			this.conditionComboBox.setVisible(false);
			
			break;
		case 3:
			//如果用戶選擇查詢周,顯示1-18周并為其賦值			//清空周選擇組合框			this.conditionComboBox.setVisible(true);
			this.conditionComboBox.removeAllItems();
			for(int i = 1 ; i <= 18 ; i++ ){
				this.conditionComboBox.addItem("第"+i+"周");
			}			
			
			break;
		case 4:
			//如果用戶選擇查詢?cè)拢@示1-4月并為其賦值			this.conditionComboBox.setVisible(true);
			this.conditionComboBox.removeAllItems();
			for(int i = 1 ; i <= 4 ; i++ ){
				this.conditionComboBox.addItem("第"+i+"月");
			}
			
			break;
		default:
			JOptionPane.showMessageDialog(this, "周\\月號(hào):"+nuserSelect+"周\\月不存在.");
		}
		
	}
	
	private void exitButtonActionPerformed(ActionEvent evt) {
		//退出周\月學(xué)習(xí)\心理查詢		this.dispose();
	}
	
	/**
	 * 查詢周\月學(xué)習(xí)\心理評(píng)論	 * @param evt
	 */
	private void searchButton1ActionPerformed(ActionEvent evt) {
		//查詢周\月學(xué)習(xí)\心理評(píng)論		// 建立一個(gè)JDBC對(duì)象		JdbcConnct jdbcConnection = new JdbcConnct();
		// 定義Vector變量,存儲(chǔ)從數(shù)據(jù)庫查詢來的信息		Vector vecData = new Vector();
		//定義SQL語句		String strSQL = "";
		
		//獲得SQL語句		strSQL = this.getUserSelect();
		System.out.println("\nstrSQL:"+strSQL);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美韩日一区二区三区四区| 中文字幕日韩一区| 不卡视频在线观看| 美女性感视频久久| 亚洲欧美视频在线观看视频| 精品久久久久久久久久久久包黑料| 国产传媒日韩欧美成人| 日韩不卡免费视频| 亚洲精品一二三四区| 国产嫩草影院久久久久| 精品奇米国产一区二区三区| 欧美视频你懂的| av亚洲精华国产精华精| 国产主播一区二区三区| 蜜臀a∨国产成人精品| 香蕉加勒比综合久久| 亚洲欧洲日韩在线| 欧美激情综合在线| 精品国产91乱码一区二区三区 | 宅男噜噜噜66一区二区66| 成人av在线看| 风间由美一区二区三区在线观看 | 一本久久a久久免费精品不卡| 国产一区二区免费在线| 男人操女人的视频在线观看欧美| 亚洲一区二区影院| 一区二区三区日本| 亚洲情趣在线观看| 中文字幕字幕中文在线中不卡视频| 久久久久久亚洲综合影院红桃| 日韩一卡二卡三卡四卡| 欧美一区二区三区在线观看视频| 欧美日韩国产欧美日美国产精品| 色菇凉天天综合网| 一本大道av伊人久久综合| 91小视频免费观看| 91免费观看在线| 色屁屁一区二区| 在线亚洲一区观看| 欧美三级在线看| 7777女厕盗摄久久久| 91麻豆精品国产91| 91精品福利在线一区二区三区 | 久久精品国产一区二区| 久久99精品国产.久久久久| 国内外精品视频| 国产成人精品三级| 成人动漫一区二区三区| 91蜜桃网址入口| 色吧成人激情小说| 欧美日韩成人一区二区| 91精品国产品国语在线不卡| 精品久久一区二区三区| 欧美激情在线一区二区三区| 亚洲丝袜制服诱惑| 亚洲国产成人porn| 免费欧美在线视频| 国产成人午夜精品5599| 99久免费精品视频在线观看| 一本一本久久a久久精品综合麻豆| 欧美性欧美巨大黑白大战| 欧美日韩亚洲综合在线 | 国产午夜精品理论片a级大结局| 久久久久久综合| 国产精品三级久久久久三级| 亚洲精品成人少妇| 亚洲第一久久影院| 黄色精品一二区| 色综合久久综合网欧美综合网| 精品污污网站免费看| 日韩精品一区二区三区三区免费 | 久久婷婷成人综合色| 国产蜜臀97一区二区三区| 一区二区三区 在线观看视频| 三级在线观看一区二区| 久久精品国产精品亚洲红杏| 丁香五精品蜜臀久久久久99网站| 欧美视频中文字幕| 久久先锋资源网| 伊人婷婷欧美激情| 久久69国产一区二区蜜臀| 91免费观看在线| 精品999久久久| 亚洲一区电影777| 国产宾馆实践打屁股91| 欧美精品vⅰdeose4hd| 国产蜜臀av在线一区二区三区| 亚洲v精品v日韩v欧美v专区| 国产精品一区二区视频| 欧美性生活影院| 国产精品欧美综合在线| 午夜精品久久久久久久久久久| 国产成人高清视频| 777奇米四色成人影色区| 亚洲欧洲在线观看av| 美国一区二区三区在线播放| 91国产免费观看| 国产精品麻豆99久久久久久| 久久精品国内一区二区三区| 欧洲一区二区三区免费视频| 中文字幕精品一区| 久久成人av少妇免费| 欧美日韩国产综合一区二区三区| 中文字幕在线观看不卡| 精品一区二区三区香蕉蜜桃| 欧美日韩久久一区| 亚洲黄色录像片| 99久久久国产精品免费蜜臀| 久久这里只精品最新地址| 午夜精品一区二区三区电影天堂| 91麻豆精品在线观看| 久久精品一区二区| 精品一区二区av| 91精品午夜视频| 午夜精品一区在线观看| 91国产丝袜在线播放| 亚洲欧美激情在线| 99精品在线免费| 国产精品久久久久久户外露出 | 欧美顶级少妇做爰| 一区二区三区不卡视频| 成人黄色免费短视频| 国产欧美视频一区二区| 国产精品亚洲专一区二区三区| 日韩欧美资源站| 日本成人中文字幕在线视频 | 国产精品少妇自拍| 国产一区二区不卡在线| 精品国产乱码久久久久久1区2区| 蜜桃视频在线一区| 日韩欧美国产午夜精品| 激情成人午夜视频| 国产午夜亚洲精品午夜鲁丝片| 国产精品一二一区| 国产视频在线观看一区二区三区| 国产盗摄女厕一区二区三区| 欧美精彩视频一区二区三区| 成人激情免费视频| 自拍偷拍国产亚洲| 色吧成人激情小说| 天天色天天操综合| 国产欧美精品国产国产专区 | 国产一区二区成人久久免费影院| 欧美va在线播放| 国产美女在线精品| 国产精品福利电影一区二区三区四区| 国产高清不卡二三区| 国产精品美女久久福利网站 | 中文字幕免费不卡| av一区二区三区| 一二三区精品福利视频| 在线电影国产精品| 狠狠狠色丁香婷婷综合激情| 中文字幕高清不卡| 一本色道久久综合精品竹菊| 亚洲成人在线观看视频| 91精品黄色片免费大全| 国产精品香蕉一区二区三区| 国产精品免费av| 欧美日免费三级在线| 免费高清在线一区| 国产精品乱人伦| 欧美日韩国产高清一区| 另类成人小视频在线| 国产精品毛片高清在线完整版| 欧美视频中文字幕| 激情国产一区二区 | 自拍偷拍亚洲综合| 91精品国产综合久久久蜜臀图片| 韩国三级电影一区二区| 国产精品欧美一级免费| 欧美日韩一区二区三区四区| 国产乱码字幕精品高清av | 久久久久久一二三区| 日本电影欧美片| 久久黄色级2电影| 18成人在线观看| 欧美va在线播放| 日本韩国精品在线| 精品一区二区三区影院在线午夜| 亚洲欧美偷拍另类a∨色屁股| 91精品国产黑色紧身裤美女| 成人美女在线视频| 日日噜噜夜夜狠狠视频欧美人| 国产欧美日本一区视频| 欧美日韩电影一区| 99久久国产综合精品色伊| 老司机精品视频在线| 伊人一区二区三区| 欧美激情一区二区三区蜜桃视频 | 91久久奴性调教| 久久99久久久久| 亚洲一区自拍偷拍| 2024国产精品视频| 在线播放91灌醉迷j高跟美女 | 麻豆精品国产传媒mv男同| 亚洲色图清纯唯美| 久久精品人人爽人人爽| 欧美精品粉嫩高潮一区二区| 色综合天天狠狠|