Nbodyorbit1_Tutorial.doc

tamerunSoftware and s/w Development

Aug 15, 2012 (5 years and 6 days ago)

268 views

NetBeans 8.1 Start Making a Project

nbodyorbit1 with class Body.java

2008
-
July 16






Right click

Source Packages


to Create New Class.

Name the class “Body”


Note: Every Java Class name starts with a capital letter !!


Click Finish


Nick Bennett
’s Comment

When begin a java project, always start with a 1
st

class
.

Then to Add Line Numbers:
Tools


佰瑩ons


䅤vanced⁏ 瑩ons


䕤iting


䕤i瑯r⁓e瑴ings

Line⁎u浢mrs


Chec欠Box



Close


Then⁢ gin⁴yping†progra洠a晴敲fco浭ents wi瑨⁰ blic⁣污s
s⁂ody⁻ ⁽ … 瑹pe progra洠inside⁻..}.


Screen capture program shown below shows the variables (attributes) of the class and

the program shows the first behavior (method) of the objects in the class “Body.java”


Then
Save
what you have typed.

Then

g
o to
the

Build
” tab


and select
Compile “Body.java”
.