
Java GUI Unit 6
Presentation
•
Computers
•
University
•
Practice Problem
•
Medium
Kittisay SENGTHONG
Used 2+ times
FREE Resource
18 Slides • 15 Questions
1
Java GUI Unit 6
Design From
2
#. ອອກແບບໜ້າ Login
ວິທີການອອກແບບໜ້າຕ່າງ Jframe ກ່ອນອື່ນໝົດສິ່ງທີ່ເຮົາຕ້ອງເຂົ້າໃຈກໍ່ຄື Swing ທີ່ຈະນຳມາອອກແບບ ວ່າຄວນໃຊ້ຕົວໃດ ການຈັດ ວາງ Layout ຮູບແບບໃດຈະເໜາະສົມ.
3
Fill in the Blanks
Type answer...
4
1. ອອກແບບ Jframe
ກ່ອນອື່ນຕ້ອງມີ Jframe ເພື່ອເປັນໜ້າຕ່າງອອກແບບ
1. defaultCloseOperation: EXIT_ON_CLOSE
2. title: My title Name
----------------- Tap Code ------------------
3. Form Size Policy: Generate Resize Code
4. Generate Size: True
5. Generate Center: True
6. Designer Size: [700, 400]
-----------------------------------------------
#. Layout: Border Layout
5
Fill in the Blanks
Type answer...
6
2. ອອກແບບ JPanel background
ຕໍ່ມານຳ JPanel ມາວາງລົງໄປໃນ Jframe ເວລາວາງໃຫ່້ວາງລົງໄປໃນສ່ວນ Center ຂອງ Border Layout
1. background [15,50,120]
---------------------------------------------
# Layout: Absolute Layout
7
Fill in the Blanks
Type answer...
8
3.ອອກແບບ Panel 2
ນຳ JPanel ມາວາງລົງໄປເພື່ອແບ່ງສ່ວນໃນການອອກແບບ
1. background [242,242,242]
2. X 0
3. Y 0
4. Width 340
5. Height 400
------------------------------------
#. Layout: Absolute Layout
9
Fill in the Blanks
Type answer...
10
4. ອອກແບບ JLabel 1
ນຳ JLabel ມາວ່າງລົງໄປເພື່ອຂຽນຂໍ້ຄວາມ Welcome to my Program
1. font Phetsarath OT 24 Bold
2. foreground [15,50,120]
3. horizontal Alignment CENTER
4. text Welcome to My Program
5. X 20
6. Y 20
7. Width 300
8. Height 40
11
Fill in the Blanks
Type answer...
12
5. ອອກແບບ JLabel logo
ຕໍ່ມາເປັນການໃສ່ຮູບພາບ Icon ຫຼື Logo ຂອງໂປຣແກຣມຕາຕ້ອງການ ຂະໜາດ 128 x 128
1. horizontal Alignment CENTER
2. icon password.png
3. X 60
4. Y 130
5. Width 220
6. Height 150
ໝາຍເຫດ: ຮູບຂອງເຮົາຕ້ອງມີຂະໜາດທີ່ເໝາະສົມ ຈາກນັ້ນຈຶ່ງນຳຮູບມາໄວ້ທີ່ Java package Image
13
Fill in the Blanks
Type answer...
14
6. ອອກແບບ JLabel version
ເຮົາຄວນຂຽນບອກວ່າໂປຣແກຣມຂອງເຮົາຖືກພັດທະນາຢູ່ທີ່ ຮຸ່ນ ທີ່ເທົາໃດ: version: 0.0.1
1. font Phetsarath OT 12 Plain
2. foreground [15,50,120]
3. horizontal Alignment RIGHT
4. text Version: 0.0.1
5. X 220
6. Y 370
7. Width 110
8. Height 20
15
Fill in the Blanks
Type answer...
16
7. ອອກແບບ JLabel login
ເຮົາຂຽນຂໍ້ຄວາມ ເຂົ້າສູ່ລະບົບ ເພື່ອເປັນການບອກວ່າແມ່ນໜ້າຕ່າງຫຍັງ
1. font Phetsarath OT 24 Bold
2. foreground [255,255,255]
3. horizontal Alignment CENTER
4. text ເຂົ້າສູ່ລະບົບ
5. X 380
6. Y 20
7. Width 290
8. Height 40
17
Fill in the Blanks
Type answer...
18
8. ອອກແບບ JLabel ຜູ້ໃຊ້
ເຮົາຈະໃຊ້ JLabel ເພື່ອບອກຜູ້ໃຊ້ງານວ່າບ່ອນນີ້ໃຊ້ໄວ້ເຮັດຫຍັງເປັນຕົ້ນ
1. font Phetsarath OT 16 Plain
2. foreground [255,255,255]
3. text ຜູ້ໃຊ້ງານ
4. X 380
5. Y 90
6. Width 60
7. Height 30
19
Fill in the Blanks
Type answer...
20
9. ອອກແບບ JTextField ຜູ້ໃຊ້
ເຮົາໃຊ້ JTextField ເພື່ອໃຫ້ຜູ້ໃຊ້ງານປ້ອນຂໍ້ມູນຜູ້ໃຊ້ງານໃນການເຂົ້າລະບົບ
1. font Phetsarath OT 14 Plain
2. X 380
3. Y 120
4. Width 290
5. Height 40
21
Fill in the Blanks
Type answer...
22
10. ອອກແບບ JLabel ລະຫັດ
ເຮົາໃຊ້ JLabel ເພື່ອອອກປ້ອນລະຫັດຜ່ານ
1. font Phetsarath OT 16 Plain
2. foreground [255,255,255]
3. text ລະຫັດຜ່ານ
4. X 380
5. Y 185
6. Width 70
7. Height 30
23
Fill in the Blanks
Type answer...
24
11. ອອກແບບ JPasswordField
ເຮົາໃຊ້ JPasswordField ເພື່ອໃຊ້ຜູ້ໃຊ້ປ້ອນລະຫັດຜ່ານຂໍ້ແຕກຕ່າງກັບ Textfield ທຳມະດາຄື ເວລາປ້ອນລະຫັດຜ່ານຈະເປັນ *
1. font Phetsarath OT 14 Plain
2. X 380
3. Y 220
4. Width 290
5. Height 40
25
Fill in the Blanks
Type answer...
26
12. ອອກແບບ JButton Login
ເຮົາໃຊ້ JButton ເພື່ອໃຫ້ຜູ້ໃຊ້ງານກົດປຸ່ມເພື່ອເຂົ້າສູ່ລະບົບ
1. background [0,102,102]
2. font Phetsarath OT 18 Plain
3. foreground [255,255,255]
4. text ເຂົ້າລະບົບ
5. cursor Hand Cursor
5. X 380
6. Y 300
7. Width 130
8. Height 50
27
Fill in the Blanks
Type answer...
28
13.ອອກແບບJButton Cancel
ເຮົາໃຊ້ JButton ເພື່ອໃຫ້ຜູ້ໃຊ້ກົດປູ່ມຍົກເລີກ ເພື່ອ ລ້າງຂໍ້ມູນ ຈາກ Textfield ແລະ PasswordField
1. background [255,51,51]
2. font Phetsarath OT 18 Plain
3. foreground [255,255,255]
4. text ຍົກເລີກ
5. cursor Hand Cursor
6. X 540
7. Y 300
8. Width 130
9. Height 50
29
Fill in the Blanks
Type answer...
30
ອອກແບບສຳເລັດ
31
ສະຫຼຸບບົດຮຽນ
1. ອອກແບບ Jframe
2. ອອກແບບ JPanel background
3.ອອກແບບ Panel 2
4. ອອກແບບ JLabel 1
5. ອອກແບບ JLabel logo
6. ອອກແບບ JLabel version
7. ອອກແບບ JLabel login
32
8. ອອກແບບ JLabel ຜູ້ໃຊ້
9. ອອກແບບ JTextField ຜູ້ໃຊ້
10. ອອກແບບ JLabel ລະຫັດ
11. ອອກແບບ JPasswordField
12. ອອກແບບ JButton Login
13.ອອກແບບJButton Cancel
33
Open Ended
ສິ່ງໃດຄວນເພີ່ມ ຫຼື ຫຼຸດໃນບົດນີ້ ຈຸດດີຈຸດອ່ອນ
Java GUI Unit 6
Design From
Show answer
Auto Play
Slide 1 / 33
SLIDE
Similar Resources on Wayground
31 questions
verbs lvl 3
Presentation
•
University
25 questions
PPT BAB WARISAN
Presentation
•
12th Grade
28 questions
What would happen if every human suddenly disappeared?
Presentation
•
Professional Development
25 questions
IDS 2.1 Present Simple
Presentation
•
University
26 questions
FINAL SIX
Presentation
•
University
28 questions
DBMS-2
Presentation
•
University
25 questions
470 Zoom #1
Presentation
•
University
31 questions
Trig 2.2
Presentation
•
University
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
19 questions
Minecraft
Quiz
•
6th Grade - Professio...
40 questions
8th Grade Math Review
Quiz
•
8th Grade - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
10 questions
Would you rather...
Quiz
•
KG - University
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
14 questions
Superhero
Quiz
•
1st Grade - University