+ All Categories
Home > Documents > ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans...

ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans...

Date post: 09-Sep-2018
Category:
Upload: trinhthuy
View: 225 times
Download: 3 times
Share this document with a friend
90
Lab 01 Netbeans YHL 1 ECE 462 C++ and Java Lab Exercise 1 Netbeans Yung-Hsiang Lu [email protected]
Transcript
Page 1: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 1

ECE 462 C++ and Java

Lab Exercise 1Netbeans

Yung-Hsiang [email protected]

Page 2: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 2

Goals

• learn the Netbeans working environmnt• write, compile, and execute Java programs • set up a code repository for version control• create a simple user interface with menu and buttons

Page 3: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 3

http://www.netbeans.org/

Page 4: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 4

Create a Project in Netbeans

Page 5: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 5

Page 6: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 6

Page 7: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 7

Page 8: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 8

Page 9: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 9

Page 10: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 10

Page 11: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 11

Page 12: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 12

Page 13: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 13

Page 14: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 14

Sample Programs from Textbook

Page 15: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 15

Page 16: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 16

Page 17: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 17

Page 18: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 18

Page 19: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 19

Page 20: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 20

Page 21: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 21

Create Graphical User Interface

Page 22: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 22

Page 23: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 23

Page 24: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 24

Page 25: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 25

Add Menu

Page 26: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 26

Page 27: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 27

Page 28: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 28

Page 29: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 29

Page 30: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 30

Page 31: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 31

Page 32: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 32

Page 33: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 33

Run the Program

Page 34: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 34

Page 35: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 35

Page 36: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 36

Version Control

Page 37: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 37

Page 38: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 38

Page 39: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 39

Page 40: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 40

Page 41: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 41

Page 42: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 42

Page 43: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 43

Page 44: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 44

Page 45: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 45

Page 46: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 46

Page 47: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 47

always update before commit

Page 48: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 48

Page 49: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 49

Page 50: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 50

Page 51: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 51

Page 52: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 52

Add Button

Page 53: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 53

Page 54: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 54

Page 55: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 55

Page 56: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 56

Page 57: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 57

Page 58: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 58

Page 59: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 59

Page 60: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 60

Page 61: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 61

Create a Derived Class and Override paintComponent

Page 62: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 62

Page 63: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 63

Page 64: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 64

Page 65: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 65

Page 66: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 66

Page 67: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 67

Handle Button Action

Page 68: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 68

Page 69: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 69

Page 70: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 70

Page 71: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 71

Page 72: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 72

Page 73: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 73

Page 74: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 74

Please remember to commit all changes in Netbeansbefore creating a zip file of the repository.

Page 75: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 75

Submission: A zip file of the CVS repository

Page 76: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 76

Submission in Blackboard

You MUST submit through this procedure. Email submission is not accepted.Late submission is not accepted.

Page 77: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 77

Page 78: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 78

Click

Page 79: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 79

Click

Page 80: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 80

Due Date

Page 81: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 81

Add Attachments

Page 82: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 82

Select A File From Your Computer

Page 83: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 83

Page 84: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 84

Click Submit

Check File Name

Page 85: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 85

Page 86: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 86

Submitted

Take Back forResubmission

Page 87: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 87

Page 88: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 88

remove

Page 89: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 89

Page 90: ECE 462 C++ and Java Lab Exercise 1 Netbeans · YHL Lab 01 Netbeans 2 Goals • learn the Netbeans working environmnt • write, compile, and execute Java programs • set up a code

Lab 01 NetbeansYHL 90

You are strongly encouraged to submit your partial assignment

early.You can submit improvements before the

deadline.

Please remember that late submission is not accepted for any reason.


Recommended