• To compile a class that is part of a program you can either click the Compile button on the left side of the window or right click on the icon of the class and select the Compile option from the pop up menu.
    If the class does not have any syntax errors it will now be shown without any diagonal lines on its icon.

  • To add a new class to the project click on the New Class button.

  • A menu pops up asking for the name of the class. On assignment 1 the name must be Circle.
    Ensure the Class radio button is selected, type in Circle for the Class Name and click the okay button. A new class is added to our project.

  • To edit the code in a class double click on its icon. This opens an editor window which is very like a simple word processor.
    Select and delete the default code in the class.

  • Type in the changes to the program. You save the program by clicking on the Class menu and selecting Save. You can attempt to compile the program by clicking the Compile button. Any errors will show up in the text area at the bottom of the edit window. If an error occurs the line the error is on is highlighted in yellow. After compiling the program and getting it to work close the editing window w and go back to the project window. The program / class icon no longer has diagonal lines across it.

  • To run the program right click on the icon that has the main method in it. IN assignment one, this is the Circle class. This brings up a menu that allows you to carry out various actions. (You could also compile classes here.) Select the menu option void main(args). This causes the main method of the class to be executed.

  • Another menu pops up that asks what parameters or information you want to pass to the method, in this case main. In this class we won't normally pass any information to method main so just click Ok.

  • This causes the program to run. In assignment 1 a separate window opens and you may have to click on that window to see the program run.
    For more help with BlueJ see the BlueJ tutorial and BlueJ reference manual.

    To the CS 305j home page
  • Related searches

    bluej 2.2.1 mac download

    Bluej Download For Macbook

    at UpdateStar
    Descriptions containing

    bluej 2.2.1 mac download

    Additional titles containing

    bluej 2.2.1 mac download

    Bluej App Download

    Download bluej for mac os

    Most recent searches

    Bluej Ticket Machine Download