public void set() {
		ConnectMySQL.connSQL();
		String selectDate = dc.sdf2.format(dc.select.getTime());
		String str1 = null, str2 = null, str3 = null, str4 = null;
		if ((Integer) staHourSpinner.getValue() < 10) {
			str1 = '0' + staHourSpinner.getValue().toString();
		} else {
			str1 = staHourSpinner.getValue().toString();
		}
		if ((Integer) staMinuteSpinner.getValue() < 10) {
			str2 = '0' + staMinuteSpinner.getValue().toString();
		} else {
			str2 = staMinuteSpinner.getValue().toString();
		}
		if ((Integer) endHourSpinner.getValue() < 10) {
			str3 = '0' + endHourSpinner.getValue().toString();
		} else {
			str3 = endHourSpinner.getValue().toString();
		}
		if ((Integer) endMinuteSpinner.getValue() < 10) {
			str4 = '0' + endMinuteSpinner.getValue().toString();
		} else {
			str4 = endMinuteSpinner.getValue().toString();
		}
		String selectStaTime = str1 + str2;
		String selectEndTime = str3 + str4;
		String selectMem = memTextArea.getText();
		try {
			if (ConnectMySQL.getSelectedResultSet(dc, staHourSpinner,
					staMinuteSpinner, endHourSpinner, endMinuteSpinner).next()) {
				if (ConnectMySQL.updateSQL(selectDate, selectStaTime,
						selectEndTime, selectMem)) {
					JOptionPane.showInternalMessageDialog(
							this.getContentPane(), "޸ݳɹ", "Information:",
							JOptionPane.INFORMATION_MESSAGE);
				} else {
					JOptionPane.showMessageDialog(null, "޸ʧܣ", "Error:",
							JOptionPane.ERROR_MESSAGE);
				}
			}

			else if (ConnectMySQL.insertSQL(selectDate, selectStaTime,
					selectEndTime, selectMem)) {
				JOptionPane.showInternalMessageDialog(this.getContentPane(),
						"ݳɹ", "Information:",
						JOptionPane.INFORMATION_MESSAGE);
				this.setVisible(false);
			} else {
				JOptionPane.showMessageDialog(null, "ݲʧܣ", "Error:",
						JOptionPane.ERROR_MESSAGE);
			}
		} catch (SQLException e) {
			// TODO Զɵ catch 
			e.printStackTrace();
		}
	}