Skip to content

Commit 6fef228

Browse files
committed
1차 완성, 프로젝트 인코딩 변경
0 parents  commit 6fef228

File tree

156 files changed

+3201
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+3201
-0
lines changed

.classpath

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
4+
<classpathentry kind="src" path="src"/>
5+
<classpathentry kind="lib" path="lib/sqlite-jdbc-3.23.1.jar"/>
6+
<classpathentry kind="lib" path="lib/school-api-3.0.5.jar"/>
7+
<classpathentry kind="output" path="bin"/>
8+
</classpath>

.project

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Where_I_live</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
3+
separateDerivedEncodings=true

.settings/org.eclipse.jdt.core.prefs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
5+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6+
org.eclipse.jdt.core.compiler.compliance=1.8
7+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
9+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12+
org.eclipse.jdt.core.compiler.source=1.8

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Yebin Kim
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

bin/Changing_informationUI$1.class

1.1 KB
Binary file not shown.

bin/Changing_informationUI.class

2.89 KB
Binary file not shown.

bin/UImain$1.class

634 Bytes
Binary file not shown.

bin/UImain$10.class

627 Bytes
Binary file not shown.

bin/UImain$11.class

1.01 KB
Binary file not shown.

bin/UImain$2.class

649 Bytes
Binary file not shown.

bin/UImain$3.class

849 Bytes
Binary file not shown.

bin/UImain$4.class

623 Bytes
Binary file not shown.

bin/UImain$5.class

648 Bytes
Binary file not shown.

bin/UImain$6.class

802 Bytes
Binary file not shown.

bin/UImain$7.class

847 Bytes
Binary file not shown.

bin/UImain$8.class

850 Bytes
Binary file not shown.

bin/UImain$9.class

851 Bytes
Binary file not shown.

bin/UImain.class

7.6 KB
Binary file not shown.

bin/UItest$1.class

843 Bytes
Binary file not shown.

bin/UItest$10.class

627 Bytes
Binary file not shown.

bin/UItest$2.class

851 Bytes
Binary file not shown.

bin/UItest$3.class

847 Bytes
Binary file not shown.

bin/UItest$4.class

633 Bytes
Binary file not shown.

bin/UItest$5.class

623 Bytes
Binary file not shown.

bin/UItest$6.class

652 Bytes
Binary file not shown.

bin/UItest$7.class

850 Bytes
Binary file not shown.

bin/UItest$8.class

613 Bytes
Binary file not shown.

bin/UItest$9.class

622 Bytes
Binary file not shown.

bin/UItest.class

7.15 KB
Binary file not shown.

bin/changing_information.class

285 Bytes
Binary file not shown.

bin/check_aircon_UI.class

3.94 KB
Binary file not shown.

bin/check_laundry_UI.class

3.49 KB
Binary file not shown.

bin/check_out_UI.class

3.71 KB
Binary file not shown.

bin/check_soonout_UI.class

3.84 KB
Binary file not shown.

bin/classroom_edit_UI$1.class

2.02 KB
Binary file not shown.

bin/classroom_edit_UI.class

3.66 KB
Binary file not shown.

bin/cleanclassUI.class

2.96 KB
Binary file not shown.

bin/edit_btn.class

494 Bytes
Binary file not shown.

bin/edit_post.class

405 Bytes
Binary file not shown.

bin/getMessage.class

4.22 KB
Binary file not shown.

bin/login.class

386 Bytes
Binary file not shown.

bin/loginUI$1.class

1.34 KB
Binary file not shown.

bin/loginUI$2.class

597 Bytes
Binary file not shown.

bin/loginUI.class

3.71 KB
Binary file not shown.

bin/message.class

405 Bytes
Binary file not shown.

bin/message_room_student.class

1.36 KB
Binary file not shown.

bin/message_room_teacher.class

1.47 KB
Binary file not shown.

bin/noticeUI.class

2.34 KB
Binary file not shown.

bin/notice_edit_UI$1.class

1.05 KB
Binary file not shown.

bin/notice_edit_UI.class

2.77 KB
Binary file not shown.

bin/plus_and_minusUI.class

3.36 KB
Binary file not shown.

bin/plus_and_minus_edit_UI$1.class

1.58 KB
Binary file not shown.

bin/plus_and_minus_edit_UI.class

3.31 KB
Binary file not shown.

bin/search_student.class

267 Bytes
Binary file not shown.

bin/search_student_UI.class

1.02 KB
Binary file not shown.

bin/see_btn.class

489 Bytes
Binary file not shown.

bin/see_post.class

492 Bytes
Binary file not shown.

bin/sendMessage.class

2.55 KB
Binary file not shown.

bin/send_message_student$1.class

1.15 KB
Binary file not shown.

bin/send_message_student.class

1.71 KB
Binary file not shown.

bin/send_message_teacher$1.class

1.18 KB
Binary file not shown.

bin/send_message_teacher.class

1.7 KB
Binary file not shown.

bin/signup.class

390 Bytes
Binary file not shown.

bin/signupUI$1.class

1.01 KB
Binary file not shown.

bin/signupUI.class

3.25 KB
Binary file not shown.

bin/student_listUI$1.class

1.43 KB
Binary file not shown.

bin/student_listUI$2.class

1.32 KB
Binary file not shown.

bin/student_listUI.class

5.79 KB
Binary file not shown.

bin/student_main.class

2.47 KB
Binary file not shown.

bin/teacher_main.class

496 Bytes
Binary file not shown.

bin/write_airconUI$1.class

911 Bytes
Binary file not shown.

bin/write_airconUI.class

3.53 KB
Binary file not shown.

bin/write_laundryUI$1.class

1.2 KB
Binary file not shown.

bin/write_laundryUI.class

7.39 KB
Binary file not shown.

bin/write_outUI$1.class

1.43 KB
Binary file not shown.

bin/write_outUI.class

3.75 KB
Binary file not shown.

bin/write_soonoutUI$1.class

1.31 KB
Binary file not shown.

bin/write_soonoutUI.class

3.7 KB
Binary file not shown.

bin/설명서.class

252 Bytes
Binary file not shown.

dormitory.db

52 KB
Binary file not shown.

img/add.png

3.68 KB

img/add_and_del.PNG

4.54 KB

img/add_plus_and_minus_back.jpg

51.4 KB

img/aircon_back.JPG

33.9 KB

img/aircon_check_back.jpg

41.1 KB

img/airconicon.PNG

9.14 KB

img/airconicon_teacher.PNG

6.05 KB

img/allstudent_list_back.png

20.6 KB

img/apply.PNG

4.55 KB

img/back.jpg

52.1 KB

img/back.png

16.4 KB

img/changbtn.PNG

4.17 KB

img/changbtn_small.PNG

4.85 KB

img/change_cleanroom_back.jpg

52.3 KB

img/changing_information_back.jpg

39.7 KB

img/cleanroom_back.jpg

49 KB

img/del.png

3.67 KB

img/find_password_backJPG.JPG

44.7 KB

img/find_passwordbtn.JPG

21 KB

img/goout_check_back.jpg

32.2 KB

img/laundry_1.PNG

27.8 KB

img/laundry_2.PNG

28.1 KB

img/laundry_3.PNG

28.2 KB

img/laundry_check_back.jpg

39 KB

img/laundryicon.PNG

7.69 KB

img/laundryicon_teacher.PNG

5.43 KB

img/login.PNG

7.17 KB

img/login_back.jpg

38.5 KB

img/messageroom_student.jpg

34.9 KB

img/messageroom_teacher.jpg

43.9 KB

img/modifi.PNG

4.17 KB

img/modifiandremove.PNG

5.16 KB

img/more_post.PNG

4.12 KB

img/more_table.PNG

4.12 KB

img/notice.png

4.78 KB

img/notice_back.jpg

37.7 KB

img/out_check_back.jpg

32.7 KB

img/outicon.PNG

7.77 KB

img/outicon_teacher.PNG

5.44 KB

img/plusandminus.jpg

34.3 KB

img/postbox.png

1.78 KB

img/profile.PNG

6.54 KB

img/searchbtn.PNG

3.99 KB

img/searchbtn_small.PNG

4.6 KB

img/seeall.PNG

3.57 KB

img/send.PNG

2.31 KB

img/send_message.PNG

3.83 KB

img/send_message.jpg

34.2 KB

img/signup_back.jpg

47.7 KB

img/signupicon.png

4.1 KB

img/signupicon_gray.jpg

4.16 KB

img/soonout_back.jpg

33.8 KB

img/soonouticon.PNG

6.45 KB

img/soonouticon_teacher.PNG

5.2 KB

img/student_list.PNG

4.84 KB

img/teacher_back.jpg

40.2 KB

img/upload_notice.jpg

35.8 KB

img/write_laundry_back.JPG

51.7 KB

img/write_out_back.jpg

42.4 KB

lib/school-api-3.0.5.jar

10.1 KB
Binary file not shown.

lib/sqlite-jdbc-3.23.1.jar

6.42 MB
Binary file not shown.

src/changing_information.java

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// 정보수정하기
2+
3+
import java.awt.*;
4+
import java.awt.event.*;
5+
import java.io.File;
6+
import java.io.IOException;
7+
import java.sql.Connection;
8+
import java.sql.DriverManager;
9+
import java.sql.PreparedStatement;
10+
import java.sql.SQLException;
11+
12+
import javax.imageio.ImageIO;
13+
import javax.swing.*;
14+
import javax.swing.event.*;
15+
16+
class Changing_informationUI extends JFrame { // 정보수정
17+
18+
public static Connection conn = null;
19+
20+
public void change_pw(String chpw) throws ClassNotFoundException, SQLException {
21+
Class.forName("org.sqlite.JDBC");
22+
conn = DriverManager.getConnection("jdbc:sqlite:" + "dormitory.db");
23+
24+
PreparedStatement ps = conn.prepareStatement("UPDATE student SET pw = ? where id = ?");
25+
ps.setInt(1, Integer.parseInt(chpw));
26+
ps.setInt(2, Integer.parseInt(loginUI.id));
27+
int res = ps.executeUpdate();
28+
29+
// res가 0보다 크다면 UPDATE로 인해 영향 받은 행이 1개 이상 있다는 의미
30+
if(res > 0) System.out.println(String.format("%d row update success", res));
31+
32+
ps.close();
33+
34+
conn.close();
35+
}
36+
37+
Changing_informationUI() {
38+
39+
this.setTitle("Dormitory Management Changing information");
40+
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
41+
this.setLayout(null);
42+
43+
JTextField search = new JTextField(40);
44+
search.setBounds(450, 335, 270, 40);
45+
this.add(search);
46+
47+
ImageIcon changebtn = new ImageIcon("img//changbtn.png");
48+
JLabel changebtn_label = new JLabel(changebtn);
49+
changebtn_label.setBounds(450, 550, 170, 70);
50+
this.add(changebtn_label);
51+
52+
53+
ImageIcon backicon = new ImageIcon("img//changing_information_back.jpg");
54+
JLabel backlabel = new JLabel(backicon);
55+
backlabel.setBounds(0, 0, 1080, 720);
56+
this.add(backlabel);
57+
58+
changebtn_label.addMouseListener(new MouseAdapter() {
59+
public void mouseClicked(MouseEvent e) {
60+
try {
61+
change_pw(search.getText());
62+
} catch (ClassNotFoundException e1) {
63+
// TODO Auto-generated catch block
64+
e1.printStackTrace();
65+
} catch (SQLException e1) {
66+
// TODO Auto-generated catch block
67+
e1.printStackTrace();
68+
}
69+
}
70+
});
71+
72+
this.pack();
73+
this.setSize(1080, 720);
74+
this.setVisible(true);
75+
this.setLocationRelativeTo(null); // 자동으로 가운데에서 출력하게
76+
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
77+
78+
}
79+
}
80+
81+
82+
public class changing_information {
83+
84+
}

0 commit comments

Comments
 (0)