Program 1 - Part II - Intro to Netbeans

foreheadsobstinacyΛογισμικό & κατασκευή λογ/κού

15 Αυγ 2012 (πριν από 5 χρόνια και 1 μέρα)

380 εμφανίσεις

Netbeans Tutorial Part II


Message Box Output

1
/
6


CS101 Tutorial Lab 2

Introduction to NetBeans


The NetBeans IDE is an o
pen
-
source

integrated development environment written
entirely in Java using the NetBeans Platform. NetBeans IDE supports development of all
Java application types out of the box.





Launch Netbeans





Netbeans Tutorial Part II


Message Box Output

2
/
6


CS101 Tutorial Lab 2



Create a Java Project in the appropriate location.


File


New Project





Select Java and Java Application


Click Next



Netbeans Tutorial Part II


Message Box Output

3
/
6


CS101 Tutorial Lab 2



Type in the name of the Project




Click Finish


Netbeans Tutorial Part II


Message Box Output

4
/
6


CS101 Tutorial Lab 2

Your screen should
look similar to the one below.




Add the following lines to the
“// TODO code application logic here”

section.


JOptionPane.showMessageDialog(null,
"Hello World from Java!")
;


Netbeans Tutorial Part II


Message Box Output

5
/
6


CS101 Tutorial Lab 2



Select Build


Build Main Project


Netbeans Tutorial Part II


Message Box Output

6
/
6


CS101 Tutorial Lab 2



Now Execute the Project