-
Notifications
You must be signed in to change notification settings - Fork 10
Problem 8 : GUI
Jatawatsafe edited this page May 22, 2018
·
3 revisions
ให้สร้างโปรแกรม GUI โดยมี textfield เพื่อรับตัวเลขจาก user 2 อันหลังจากนั้นเมื่อกดปุ่ม จะคำนวณผลบวกออกมา
KEY: https://github.com/safesit23/JavaLabExercise/blob/master/MacProINT105/src/GUIComponent/CalculateNumber.java https://github.com/safesit23/JavaLabExercise/blob/master/MacProINT105/src/GUIComponent/CalculateButton.java
ให้สร้างโปรแกรม GUI โดยมี textfield เพื่อรับชื่อเล่นจากผู้ใช้ หลังจากนั้นเมื่อกดปุ่ม โปรแกรมจะ random คำทำนายทั้ง 3 อย่างดังนี้ (Normal,Good,Bad) โดยแสดงลักษณะดังนี้ Hello ชื่อผู้ใช้ : ข้อความทำนาย
Created by SafeIT23