0% found this document useful (0 votes)
116 views

COMP 102x Tutorial BlueJ Basics

This document provides instructions for creating and working with projects in the BlueJ programming environment. It describes how to create a new BlueJ project, create a new class within a project, and reopen existing BlueJ projects. The key steps are to launch BlueJ, select Project > New Project to create a project, click New Class to make a class, and select Project > Open Project to reopen a saved project.

Uploaded by

Daviamorimdb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
116 views

COMP 102x Tutorial BlueJ Basics

This document provides instructions for creating and working with projects in the BlueJ programming environment. It describes how to create a new BlueJ project, create a new class within a project, and reopen existing BlueJ projects. The key steps are to launch BlueJ, select Project > New Project to create a project, click New Class to make a class, and select Project > Open Project to reopen a saved project.

Uploaded by

Daviamorimdb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

COMP 102x Tutorial BlueJ Basics

Table of Contents
Creating a new BlueJ project*
Creating a new class*
Reopening BlueJ projects*
*The setup up images is based on a Windows system, but the instructions should apply to a Mac system
also.

Creating a new BlueJ project


Before writing a program, we will first have to create a BlueJ project for that program. Here is the
procedure on how to create a new BlueJ project:
1.
2.
3.
4.
5.

Launch BlueJ
From the menu bar, click on Project -> New Project
Navigate to your desired location
Key in your desired file name for the project folder
Click on the Create button

Creating a new class


To start writing a program, we will have to create a Class after creating a project. Here is the
procedure on how to create a new Class:
1.
2.
3.
4.

Click on the New Class button on the left panel of the BlueJ interface
Create a Class Name and leave the Class Type as Class
A class of the given name will be created after you clicked on OK
The new class created is represented by a yellow rectangular box with diagonal lines, as
indicated below

The new class created.

5. Right click on the new class then click on Open Editor, a source code editor pops up
6. From the source code editor, you will notice that some demonstration source code has been
created by default
7. You need to delete these default source codes, manually, for each class created (refer to the
image below)
8. After deleting the default code, you are now ready to write your own program

Reopening BlueJ projects


By default, BlueJ will open the project you have previously worked on. Here is the procedure on how to
open other downloaded or previously saved projects:
1.
2.
3.
4.
5.

From the menu bar, click on Project -> Open Project


Select the desired project then click on the Open button
All BlueJ projects will appear on the open dialog box
The selected BlueJ project will then open in another BlueJ window
You may choose to close the original BlueJ window

You might also like