Page 68 - Viva ICSE Computer Studies 8 : E-book
P. 68

Step 2
                                            Step 3
                                                                         Creating Java Program
                                                                         Follow these steps to create Java program.

                                                                           1. Open BlueJ.
                                                                           2.  Click on the Project menu.

                     Step 1                                                3. Select  New Project  from the menu
                                                                                displayed.




                                                                      Step 4

                      4.  A ‘New Project’ dialog box appears.
                           Give a name for the project in the
                           ‘Folder name’ box.

                      5.  Click on the Create button.                                                           Step 5


                                                                                                     Step 4

                     Step 6
                                                        Step 7
                                                                      6.  Another window is displayed. Click on the
                    Step 6                            Step 7               New Class option.
                                                                      7.  A  ‘BlueJ: Create New Class’ dialog box
                                                                           appears. Give a name in the ‘Class Name’
                                 Step 8
                                                                           box.

                                                                      8.  Click on the OK button.




                      9.  A new screen is displayed. A class is created and its icon appears on the ‘BlueJ’ window.
                      10.  Double-click on the class icon and write the code. Select the existing code by pressing
                           Ctrl + A and delete the program code. Now type a new code for a program.




                                            Step 10
                                                                     Step 9
                                                                                               Step 10















                     56
   63   64   65   66   67   68   69   70   71   72   73